C++ Reference: class MPSolver
Note: This documentation is automatically generated.
Method | |
---|---|
ClampSolutionWithinBounds | Return type: |
Clear | Return type: |
ComputeConstraintActivities | Return type: |
ComputeExactConditionNumber | Return type: |
constraint | Return type: Arguments: |
constraints | Return type: |
CreateSolver | Return type: Arguments: |
DurationSinceConstruction | Return type: |
EnableOutput | Return type: Enables solver logging. |
ExportModelAsLpFormat | Return type: Arguments: |
ExportModelAsMpsFormat | Return type: Arguments: |
ExportModelToProto | Return type: Arguments: Exports model to protocol buffer. |
FillSolutionResponseProto | Return type: Arguments: Encodes the current solution in a solution response protocol buffer. |
GetNumThreads | Return type: Returns the number of threads to be used during solve. |
GetSolverSpecificParametersAsString | Return type: |
global_num_constraints | Return type: |
global_num_variables | Return type: Global counters of variables and constraints ever created across all MPSolver instances. Those are only updated after the destruction (or Clear()) of each MPSolver instance. |
infinity | Return type: |
InterruptSolve | Return type: |
IsMIP | Return type: |
iterations | Return type: Returns the number of simplex iterations. |
LoadModelFromProto | Return type: Arguments: |
LoadModelFromProtoWithUniqueNamesOrDie | Return type: Arguments: |
LoadSolutionFromProto | Return type: Arguments: |
LookupConstraintOrNull | Return type: Arguments: |
LookupVariableOrNull | Return type: Arguments: |
MakeBoolVar | Return type: Arguments: Creates a boolean variable. |
MakeBoolVarArray | Return type: Arguments: Creates an array of boolean variables. |
MakeIntVar | Return type: Arguments: Creates an integer variable. |
MakeIntVarArray | Return type: Arguments: Creates an array of integer variables. |
MakeNumVar | Return type: Arguments: Creates a continuous variable. |
MakeNumVarArray | Return type: Arguments: Creates an array of continuous variables. |
MakeRowConstraint | Return type: Arguments: |
MakeRowConstraint | Return type: Creates a constraint with -infinity and +infinity bounds. |
MakeRowConstraint | Return type: Arguments: Creates a named constraint with given bounds. |
MakeRowConstraint | Return type: Arguments: Creates a named constraint with -infinity and +infinity bounds. |
MakeRowConstraint | Return type: Arguments: |
MakeRowConstraint | Return type: Arguments: As above, but also names the constraint. |
MakeVar | Return type: Arguments: |
MakeVarArray | Return type: Arguments: |
MPSolver | Arguments: Create a solver with the given name and underlying solver backend. |
~MPSolver | Return type: |
MutableObjective | Return type: Returns the mutable objective object. |
Name | Return type: Returns the name of the model set at construction. |
NextSolution | Return type: |
nodes | Return type: |
NumConstraints | Return type: Returns the number of constraints. |
NumVariables | Return type: Returns the number of variables. |
Objective | Return type: |
OutputIsEnabled | Return type: |
OwnsVariable | Return type: Arguments: Debugging: verify that the given MPVariable* belongs to this solver. |
ParseSolverType | Return type: Arguments: |
ParseSolverTypeOrDie | Return type: Arguments: |
ProblemType | Return type: Returns the optimization problem type set at construction. |
Reset | Return type: |
set_time_limit | Return type: Arguments: |
SetCallback | Return type: Arguments: Does not take ownership of "mp_callback". As of 2019-10-22, only SCIP and Gurobi support Callbacks. SCIP does not support suggesting a heuristic solution in the callback. See go/mpsolver-callbacks for additional documentation. |
SetHint | Return type: Arguments: |
SetNumThreads | Return type: Arguments: |
SetSolverSpecificParametersAsString | Return type: Arguments: |
SetStartingLpBasis | Return type: Arguments: |
SetTimeLimit | Return type: Arguments: |
Solve | Return type: Solves the problem using the default parameter values. |
Solve | Return type: Arguments: Solves the problem using the specified parameter values. |
SolverTypeSupportsInterruption | Return type: Arguments: |
SolverVersion | Return type: Returns a string describing the underlying solver and its version. |
SolveWithProto | Return type: Arguments: |
SupportsCallbacks | Return type: |
SupportsProblemType | Return type: Arguments: |
SuppressOutput | Return type: Suppresses solver logging. |
time_limit | Return type: DEPRECATED: Use TimeLimit() and SetTimeLimit(absl::Duration) instead. NOTE: These deprecated functions used the convention time_limit = 0 to mean "no limit", which now corresponds to time_limit_ = InfiniteDuration(). |
time_limit_in_secs | Return type: |
TimeLimit | Return type: |
underlying_solver | Return type: |
variable | Return type: Arguments: |
variables | Return type: |
VerifySolution | Return type: Arguments: |
wall_time | Return type: DEPRECATED: Use DurationSinceConstruction() instead. |
Write | Return type: Arguments: |