Constrained |
The ConstrainedOptimizer type exposes the following members.
Name | Description | |
---|---|---|
ConstrainedOptimizer | Initializes a new instance of the ConstrainedOptimizer class |
Name | Description | |
---|---|---|
ExceptionMessage | If the solver result is SolverResult.UnexpectedException gets the exception message property. | |
OptimalObjectiveFunctionValue | Gets the optimal objective function value if the solve result is SolverResult.Optimal, or the current solution value if the result is SolverResult.SolutionFeasibleButNotOptimal Otherwise the value is Double.NaN. | |
OptimalX | Gets the optimal value if the solve result is SolverResult.Optimal, or the current solution value if the result is SolverResult.SolutionFeasibleButNotOptimal Contains an empty vector otherwise. | |
Result | Gets the result of the most recent solve attempt. |
Name | Description | |
---|---|---|
AddConstraints | Adds the linear constraints in the given linearly constrained problem to a Microsoft Solver Foundation linear model. | |
AddVariablesAndBounds | Adds the variables in the given linearly constrained problem to a Microsoft Solver Foundation linear model. | |
SetStatus | Sets the SolverResult value base on the give Microsoft Solver Foundation LinearResult value. |
Name | Description | |
---|---|---|
exceptionMessage_ | Constains exception message if there is an unexpected exception during the solve. | |
MaxNumNonZeroCoeffs | The maximum number of nonzero coefficients allowed in Microsoft Solver Foundation Standard Edition, for linear and quadratic programming. This is the sum of all nonzero coefficients used in specifying constraints and the objective function. | |
optimalValue_ | Optimal value of the objective function if the the result of the solver is SolveResult.Optimal | |
optimalX_ | Optimal solution value of the the result if the solver is SolveResult.Optimal | |
result_ | Result of the solver attempt. |