コード例 #1
0
 public void Solve()
 {
     for (int i = 0; i < constraintCount; i++)
     {
         double[] variables = new double[variablesCount];
         variables = DataTransfer(dtVariables[i]);
         double b    = dtB[i];
         string sign = dtSign[i];
         constraints[i] = new Constraint(variables, b, sign);
     }
     double[] functionVariables = DataTransfer(dtFunctionVariables);
     function = new Function(functionVariables, 0, isMax);
     simplex  = new SimplexMethod.Simplex(function, constraints);
     result   = simplex.GetResult();
 }