public SimplexLineCollection(NewObjectiveFunction newObjectiveFunction, List <NewConstrain> newConstrains, OptimisingType type) { constrains = newConstrains; objectiveFunction = newObjectiveFunction; TransponateIfNeeded(type); foreach (var item in constrains) { item.NumberOfConstrains = (constrains.Count); } int i = 0; foreach (var item in constrains) { item.GenerateSlackVariable(i); i++; } objectiveFunction.GenerateSlackVariable(); }
protected void CreateObjectiveFunctionObject() { ObjectiveFunction = new NewObjectiveFunction(_ObjectiveFunction, constrainList.Count); }