![]() |
OR-Tools
8.0
|
Definition at line 34 of file glop_interface.cc.
Public Types | |
| enum | SynchronizationStatus { MUST_RELOAD, MODEL_SYNCHRONIZED, SOLUTION_SYNCHRONIZED } |
Public Member Functions | |
| GLOPInterface (MPSolver *const solver) | |
| ~GLOPInterface () override | |
| MPSolver::ResultStatus | Solve (const MPSolverParameters ¶m) override |
| bool | InterruptSolve () override |
| void | Reset () override |
| void | SetOptimizationDirection (bool maximize) override |
| void | SetVariableBounds (int index, double lb, double ub) override |
| void | SetVariableInteger (int index, bool integer) override |
| void | SetConstraintBounds (int index, double lb, double ub) override |
| void | AddRowConstraint (MPConstraint *const ct) override |
| void | AddVariable (MPVariable *const var) override |
| void | SetCoefficient (MPConstraint *const constraint, const MPVariable *const variable, double new_value, double old_value) override |
| void | ClearConstraint (MPConstraint *const constraint) override |
| void | SetObjectiveCoefficient (const MPVariable *const variable, double coefficient) override |
| void | SetObjectiveOffset (double value) override |
| void | ClearObjective () override |
| int64 | iterations () const override |
| int64 | nodes () const override |
| double | best_objective_bound () const override |
| MPSolver::BasisStatus | row_status (int constraint_index) const override |
| MPSolver::BasisStatus | column_status (int variable_index) const override |
| bool | IsContinuous () const override |
| bool | IsLP () const override |
| bool | IsMIP () const override |
| std::string | SolverVersion () const override |
| void * | underlying_solver () override |
| void | ExtractNewVariables () override |
| void | ExtractNewConstraints () override |
| void | ExtractObjective () override |
| void | SetStartingLpBasis (const std::vector< MPSolver::BasisStatus > &variable_statuses, const std::vector< MPSolver::BasisStatus > &constraint_statuses) override |
| void | SetParameters (const MPSolverParameters ¶m) override |
| void | SetRelativeMipGap (double value) override |
| void | SetPrimalTolerance (double value) override |
| void | SetDualTolerance (double value) override |
| void | SetPresolveMode (int value) override |
| void | SetScalingMode (int value) override |
| void | SetLpAlgorithm (int value) override |
| bool | SetSolverSpecificParametersAsString (const std::string ¶meters) override |
| virtual absl::optional< MPSolutionResponse > | DirectlySolveProto (const MPModelRequest &request) |
| virtual void | Write (const std::string &filename) |
| virtual bool | AddIndicatorConstraint (MPConstraint *const ct) |
| virtual void | BranchingPriorityChangedForVariable (int var_index) |
| double | trivial_worst_objective_bound () const |
| double | objective_value () const |
| bool | CheckSolutionIsSynchronized () const |
| virtual bool | CheckSolutionExists () const |
| bool | CheckSolutionIsSynchronizedAndExists () const |
| virtual bool | CheckBestObjectiveBoundExists () const |
| int | last_variable_index () const |
| bool | variable_is_extracted (int var_index) const |
| void | set_variable_as_extracted (int var_index, bool extracted) |
| bool | constraint_is_extracted (int ct_index) const |
| void | set_constraint_as_extracted (int ct_index, bool extracted) |
| bool | quiet () const |
| void | set_quiet (bool quiet_value) |
| MPSolver::ResultStatus | result_status () const |
| virtual double | ComputeExactConditionNumber () const |
| virtual bool | NextSolution () |
| virtual void | SetCallback (MPCallback *mp_callback) |
| virtual bool | SupportsCallbacks () const |
Static Public Attributes | |
| static constexpr int64 | kUnknownNumberOfIterations = -1 |
| static constexpr int64 | kUnknownNumberOfNodes = -1 |
Protected Member Functions | |
| void | ExtractModel () |
| void | ResetExtractionInformation () |
| void | InvalidateSolutionSynchronization () |
| void | SetCommonParameters (const MPSolverParameters ¶m) |
| void | SetMIPParameters (const MPSolverParameters ¶m) |
| void | SetUnsupportedDoubleParam (MPSolverParameters::DoubleParam param) |
| virtual void | SetUnsupportedIntegerParam (MPSolverParameters::IntegerParam param) |
| void | SetDoubleParamToUnsupportedValue (MPSolverParameters::DoubleParam param, double value) |
| virtual void | SetIntegerParamToUnsupportedValue (MPSolverParameters::IntegerParam param, int value) |
| virtual absl::Status | SetNumThreads (int num_threads) |
| virtual bool | ReadParameterFile (const std::string &filename) |
| virtual std::string | ValidFileExtensionForParameterFile () const |
Protected Attributes | |
| MPSolver *const | solver_ |
| SynchronizationStatus | sync_status_ |
| MPSolver::ResultStatus | result_status_ |
| bool | maximize_ |
| int | last_constraint_index_ |
| int | last_variable_index_ |
| double | objective_value_ |
| bool | quiet_ |
Static Protected Attributes | |
| static const int | kDummyVariableIndex = 0 |
|
inherited |
| Enumerator | |
|---|---|
| MUST_RELOAD | |
| MODEL_SYNCHRONIZED | |
| SOLUTION_SYNCHRONIZED | |
Definition at line 1516 of file linear_solver.h.
|
explicit |
Definition at line 104 of file glop_interface.cc.
|
override |
Definition at line 113 of file glop_interface.cc.
|
inlinevirtualinherited |
Reimplemented in SCIPInterface, GurobiInterface, and SatInterface.
Definition at line 1579 of file linear_solver.h.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 212 of file glop_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 216 of file glop_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 248 of file glop_interface.cc.
|
inlinevirtualinherited |
Reimplemented in GurobiInterface, and SCIPInterface.
Definition at line 1605 of file linear_solver.h.
|
virtualinherited |
Reimplemented in GurobiInterface.
Definition at line 1672 of file linear_solver.cc.
|
virtualinherited |
Definition at line 1660 of file linear_solver.cc.
|
inherited |
Definition at line 1648 of file linear_solver.cc.
|
inlineinherited |
Definition at line 1635 of file linear_solver.h.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 226 of file glop_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 237 of file glop_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 257 of file glop_interface.cc.
|
virtualinherited |
Reimplemented in GurobiInterface.
Definition at line 1698 of file linear_solver.cc.
|
inlineinherited |
Definition at line 1664 of file linear_solver.h.
|
inlinevirtualinherited |
Reimplemented in SCIPInterface, and GurobiInterface.
Definition at line 1549 of file linear_solver.h.
|
protectedinherited |
Definition at line 1612 of file linear_solver.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 288 of file glop_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 274 of file glop_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 312 of file glop_interface.cc.
|
overridevirtual |
Reimplemented from MPSolverInterface.
Definition at line 185 of file glop_interface.cc.
|
protectedinherited |
Definition at line 1692 of file linear_solver.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 261 of file glop_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 263 of file glop_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 265 of file glop_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 239 of file glop_interface.cc.
|
inlineinherited |
Definition at line 1656 of file linear_solver.h.
|
inlinevirtualinherited |
Reimplemented in GurobiInterface.
Definition at line 1702 of file linear_solver.h.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 243 of file glop_interface.cc.
|
inherited |
Definition at line 1687 of file linear_solver.cc.
|
inlineinherited |
Definition at line 1672 of file linear_solver.h.
|
protectedvirtualinherited |
Definition at line 1797 of file linear_solver.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 190 of file glop_interface.cc.
|
protectedinherited |
Definition at line 1640 of file linear_solver.cc.
|
inlineinherited |
Definition at line 1677 of file linear_solver.h.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 253 of file glop_interface.cc.
|
inlineinherited |
Definition at line 1667 of file linear_solver.h.
|
inlineinherited |
Definition at line 1674 of file linear_solver.h.
|
inlineinherited |
Definition at line 1661 of file linear_solver.h.
|
inlinevirtualinherited |
Reimplemented in GurobiInterface.
Definition at line 1705 of file linear_solver.h.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 220 of file glop_interface.cc.
|
protectedinherited |
Definition at line 1707 of file linear_solver.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 208 of file glop_interface.cc.
|
protectedinherited |
Definition at line 1743 of file linear_solver.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 359 of file glop_interface.cc.
|
protectedvirtualinherited |
Definition at line 1748 of file linear_solver.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 398 of file glop_interface.cc.
|
protectedinherited |
Definition at line 1728 of file linear_solver.cc.
|
protectedvirtualinherited |
Reimplemented in SatInterface, and CBCInterface.
Definition at line 1754 of file linear_solver.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 230 of file glop_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 235 of file glop_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 196 of file glop_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 336 of file glop_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 368 of file glop_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 349 of file glop_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 342 of file glop_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 383 of file glop_interface.cc.
|
overridevirtual |
Reimplemented from MPSolverInterface.
Definition at line 414 of file glop_interface.cc.
|
overridevirtual |
Reimplemented from MPSolverInterface.
Definition at line 322 of file glop_interface.cc.
|
protectedinherited |
Definition at line 1735 of file linear_solver.cc.
|
protectedvirtualinherited |
Definition at line 1739 of file linear_solver.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 200 of file glop_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 204 of file glop_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 115 of file glop_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 267 of file glop_interface.cc.
|
inlinevirtualinherited |
Reimplemented in GurobiInterface.
Definition at line 1709 of file linear_solver.h.
|
inherited |
Definition at line 1682 of file linear_solver.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 272 of file glop_interface.cc.
|
protectedvirtualinherited |
Definition at line 1802 of file linear_solver.cc.
|
inlineinherited |
Definition at line 1658 of file linear_solver.h.
|
virtualinherited |
Reimplemented in GurobiInterface.
Definition at line 1608 of file linear_solver.cc.
|
staticprotectedinherited |
Definition at line 1740 of file linear_solver.h.
|
staticconstexprinherited |
Definition at line 1531 of file linear_solver.h.
|
staticconstexprinherited |
Definition at line 1534 of file linear_solver.h.
|
protectedinherited |
Definition at line 1728 of file linear_solver.h.
|
protectedinherited |
Definition at line 1730 of file linear_solver.h.
|
protectedinherited |
Definition at line 1725 of file linear_solver.h.
|
protectedinherited |
Definition at line 1733 of file linear_solver.h.
|
protectedinherited |
Definition at line 1736 of file linear_solver.h.
|
protectedinherited |
Definition at line 1723 of file linear_solver.h.
|
protectedinherited |
Definition at line 1718 of file linear_solver.h.
|
protectedinherited |
Definition at line 1720 of file linear_solver.h.