![]() |
OR-Tools
9.2
|
Definition at line 43 of file sat_interface.cc.
Public Types | |
| enum | SynchronizationStatus { MUST_RELOAD , MODEL_SYNCHRONIZED , SOLUTION_SYNCHRONIZED } |
Public Member Functions | |
| SatInterface (MPSolver *const solver) | |
| ~SatInterface () override | |
| MPSolver::ResultStatus | Solve (const MPSolverParameters ¶m) override |
| absl::optional< MPSolutionResponse > | DirectlySolveProto (const MPModelRequest &request, std::atomic< bool > *interrupt) 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 |
| bool | AddIndicatorConstraint (MPConstraint *const ct) override |
| int64_t | iterations () const override |
| int64_t | nodes () 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 | 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 |
| absl::Status | SetNumThreads (int num_threads) override |
| virtual void | Write (const std::string &filename) |
| virtual void | BranchingPriorityChangedForVariable (int var_index) |
| double | best_objective_bound () const |
| double | objective_value () const |
| bool | CheckSolutionIsSynchronized () const |
| virtual bool | CheckSolutionExists () const |
| bool | CheckSolutionIsSynchronizedAndExists () 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 void | SetStartingLpBasis (const std::vector< MPSolver::BasisStatus > &variable_statuses, const std::vector< MPSolver::BasisStatus > &constraint_statuses) |
| virtual bool | NextSolution () |
| virtual void | SetCallback (MPCallback *mp_callback) |
| virtual bool | SupportsCallbacks () const |
Static Public Attributes | |
| static constexpr int64_t | kUnknownNumberOfIterations = -1 |
| static constexpr int64_t | 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) |
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_ |
| double | best_objective_bound_ |
| bool | quiet_ |
Static Protected Attributes | |
| static const int | kDummyVariableIndex = 0 |
|
inherited |
| Enumerator | |
|---|---|
| MUST_RELOAD | |
| MODEL_SYNCHRONIZED | |
| SOLUTION_SYNCHRONIZED | |
Definition at line 1552 of file linear_solver.h.
|
explicit |
Definition at line 110 of file sat_interface.cc.
|
override |
Definition at line 113 of file sat_interface.cc.
|
inlineoverridevirtual |
Reimplemented from MPSolverInterface.
Definition at line 71 of file sat_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 210 of file sat_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 214 of file sat_interface.cc.
|
inherited |
Definition at line 1881 of file linear_solver.cc.
|
inlinevirtualinherited |
Reimplemented in GurobiInterface, and SCIPInterface.
Definition at line 1647 of file linear_solver.h.
|
virtualinherited |
Definition at line 1866 of file linear_solver.cc.
|
inherited |
Definition at line 1854 of file linear_solver.cc.
|
inlineinherited |
Definition at line 1674 of file linear_solver.h.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 224 of file sat_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 235 of file sat_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 247 of file sat_interface.cc.
|
virtualinherited |
Reimplemented in GurobiInterface.
Definition at line 1905 of file linear_solver.cc.
|
inlineinherited |
Definition at line 1700 of file linear_solver.h.
|
overridevirtual |
Reimplemented from MPSolverInterface.
Definition at line 167 of file sat_interface.cc.
|
protectedinherited |
Definition at line 1818 of file linear_solver.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 263 of file sat_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 261 of file sat_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 265 of file sat_interface.cc.
|
overridevirtual |
Reimplemented from MPSolverInterface.
Definition at line 187 of file sat_interface.cc.
|
protectedinherited |
Definition at line 1899 of file linear_solver.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 251 of file sat_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 252 of file sat_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 253 of file sat_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 237 of file sat_interface.cc.
|
inlineinherited |
Definition at line 1692 of file linear_solver.h.
|
inlinevirtualinherited |
Reimplemented in GurobiInterface, and SCIPInterface.
Definition at line 1738 of file linear_solver.h.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 241 of file sat_interface.cc.
|
inherited |
Definition at line 1876 of file linear_solver.cc.
|
inlineinherited |
Definition at line 1708 of file linear_solver.h.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 192 of file sat_interface.cc.
|
protectedinherited |
Definition at line 1846 of file linear_solver.cc.
|
inlineinherited |
Definition at line 1713 of file linear_solver.h.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 243 of file sat_interface.cc.
|
inlineinherited |
Definition at line 1703 of file linear_solver.h.
|
inlineinherited |
Definition at line 1710 of file linear_solver.h.
|
inlineinherited |
Definition at line 1697 of file linear_solver.h.
|
inlinevirtualinherited |
Reimplemented in GurobiInterface, and SCIPInterface.
Definition at line 1741 of file linear_solver.h.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 218 of file sat_interface.cc.
|
protectedinherited |
Definition at line 1914 of file linear_solver.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 206 of file sat_interface.cc.
|
protectedinherited |
Definition at line 1950 of file linear_solver.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 279 of file sat_interface.cc.
|
protectedvirtualinherited |
Definition at line 1955 of file linear_solver.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 281 of file sat_interface.cc.
|
protectedinherited |
Definition at line 1935 of file linear_solver.cc.
|
overridevirtual |
Reimplemented from MPSolverInterface.
Definition at line 272 of file sat_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 228 of file sat_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 233 of file sat_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 194 of file sat_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 267 of file sat_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 285 of file sat_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 278 of file sat_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 282 of file sat_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 280 of file sat_interface.cc.
|
overridevirtual |
Reimplemented from MPSolverInterface.
Definition at line 287 of file sat_interface.cc.
|
inlinevirtualinherited |
Reimplemented in GLOPInterface.
Definition at line 1729 of file linear_solver.h.
|
protectedinherited |
Definition at line 1942 of file linear_solver.cc.
|
protectedvirtualinherited |
Definition at line 1946 of file linear_solver.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 198 of file sat_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 202 of file sat_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 115 of file sat_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 255 of file sat_interface.cc.
|
inlinevirtualinherited |
Reimplemented in GurobiInterface, and SCIPInterface.
Definition at line 1745 of file linear_solver.h.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 259 of file sat_interface.cc.
|
inlineinherited |
Definition at line 1694 of file linear_solver.h.
|
virtualinherited |
Reimplemented in GurobiInterface.
Definition at line 1814 of file linear_solver.cc.
|
protectedinherited |
Definition at line 1772 of file linear_solver.h.
|
staticprotectedinherited |
Definition at line 1779 of file linear_solver.h.
|
staticconstexprinherited |
Definition at line 1567 of file linear_solver.h.
|
staticconstexprinherited |
Definition at line 1570 of file linear_solver.h.
|
protectedinherited |
Definition at line 1764 of file linear_solver.h.
|
protectedinherited |
Definition at line 1766 of file linear_solver.h.
|
protectedinherited |
Definition at line 1761 of file linear_solver.h.
|
protectedinherited |
Definition at line 1769 of file linear_solver.h.
|
protectedinherited |
Definition at line 1775 of file linear_solver.h.
|
protectedinherited |
Definition at line 1759 of file linear_solver.h.
|
protectedinherited |
Definition at line 1754 of file linear_solver.h.
|
protectedinherited |
Definition at line 1756 of file linear_solver.h.