Click or drag to resize

ConstrainedOptimizerORTools Class

Base class for linear Google OR-Tools based linear solvers.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CoreConstrainedOptimizerORTools
    CenterSpace.NMath.CoreSimplexSolverBaseORTools

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
[SerializableAttribute]
public class ConstrainedOptimizerORTools

The ConstrainedOptimizerORTools type exposes the following members.

Constructors
 NameDescription
Public methodConstrainedOptimizerORToolsInitializes a new instance of the ConstrainedOptimizerORTools class
Top
Properties
 NameDescription
Public propertyExceptionMessage If the solver result is SolverResult.UnexpectedException gets the exception message property.
Public propertyOptimalObjectiveFunctionValue 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.
Public propertyOptimalX 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.
Public propertyResult Gets the result of the most recent solve attempt.
Top
Methods
 NameDescription
Protected methodAddConstraints Adds the linear constraints in the given linearly constrained problem to a Google OR-tools GLOP linear model.
Protected methodAddVariablesAndBounds Adds the variables in the given linearly constrained problem to a Google OR-tools GLOP linear model
Protected methodSetStatus Sets the SolverResult value base on Google OR-Tools ResultStatus value.
Top
Fields
 NameDescription
Protected fieldexceptionMessage_ Constains exception message if there is an unexpected exception during the solve.
Protected fieldoptimalValue_ Optimal value of the objective function if the the result of the solver is SolveResult.Optimal
Protected fieldoptimalX_ Optimal solution value of the the result if the solver is SolveResult.Optimal
Protected fieldresult_ Result of the solver attempt.
Top
See Also