Example #1
0
        public void Calculate()
        {
            if (isObjectFunctionSet() && AreConstrainsSet())
            {
                CreateConstrains();
                CreateObjectiveFunctionObject();
                var temp = new SimplexLineCollection(ObjectiveFunction, constrainList, TargetType);

                SimplexCalculator = new SimplexCalculator(temp);
                SimplexCalculator.Work();
            }
        }
Example #2
0
 public SimplexCalculator(SimplexLineCollection simplexLineCollection)
 {
     SimplexLineCollection = simplexLineCollection;
 }