![]() |
OR-Tools
9.3
|
Definition at line 75 of file gurobi_interface.cc.
Public Types | |
| enum | SynchronizationStatus { MUST_RELOAD , MODEL_SYNCHRONIZED , SOLUTION_SYNCHRONIZED } |
Public Member Functions | |
| GurobiInterface (MPSolver *const solver, bool mip) | |
| ~GurobiInterface () override | |
| void | SetOptimizationDirection (bool maximize) override |
| MPSolver::ResultStatus | Solve (const MPSolverParameters ¶m) override |
| absl::optional< MPSolutionResponse > | DirectlySolveProto (const MPModelRequest &request, std::atomic< bool > *interrupt) override |
| void | Write (const std::string &filename) override |
| void | Reset () override |
| void | SetVariableBounds (int var_index, double lb, double ub) override |
| void | SetVariableInteger (int var_index, bool integer) override |
| void | SetConstraintBounds (int row_index, double lb, double ub) override |
| void | AddRowConstraint (MPConstraint *const ct) override |
| bool | AddIndicatorConstraint (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 |
| void | BranchingPriorityChangedForVariable (int var_index) 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 |
| void | ExtractNewVariables () override |
| void | ExtractNewConstraints () override |
| void | ExtractObjective () override |
| std::string | SolverVersion () const override |
| bool | InterruptSolve () override |
| void * | underlying_solver () override |
| double | ComputeExactConditionNumber () const override |
| bool | NextSolution () override |
| void | SetCallback (MPCallback *mp_callback) override |
| bool | SupportsCallbacks () const override |
| 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 void | SetStartingLpBasis (const std::vector< MPSolver::BasisStatus > &variable_statuses, const std::vector< MPSolver::BasisStatus > &constraint_statuses) |
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) |
| virtual absl::Status | SetNumThreads (int num_threads) |
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 1561 of file linear_solver.h.
|
explicit |
Definition at line 603 of file gurobi_interface.cc.
|
override |
Definition at line 622 of file gurobi_interface.cc.
|
overridevirtual |
Reimplemented from MPSolverInterface.
Definition at line 715 of file gurobi_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 711 of file gurobi_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 721 of file gurobi_interface.cc.
|
inherited |
Definition at line 1886 of file linear_solver.cc.
|
overridevirtual |
Reimplemented from MPSolverInterface.
Definition at line 788 of file gurobi_interface.cc.
|
virtualinherited |
Definition at line 1871 of file linear_solver.cc.
|
inherited |
Definition at line 1859 of file linear_solver.cc.
|
inlineinherited |
Definition at line 1683 of file linear_solver.h.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 747 of file gurobi_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 776 of file gurobi_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 888 of file gurobi_interface.cc.
|
inlineoverridevirtual |
Reimplemented from MPSolverInterface.
Definition at line 157 of file gurobi_interface.cc.
|
inlineinherited |
Definition at line 1709 of file linear_solver.h.
|
overridevirtual |
Reimplemented from MPSolverInterface.
Definition at line 1321 of file gurobi_interface.cc.
|
protectedinherited |
Definition at line 1823 of file linear_solver.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 957 of file gurobi_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 906 of file gurobi_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 1024 of file gurobi_interface.cc.
|
inlineoverridevirtual |
Reimplemented from MPSolverInterface.
Definition at line 149 of file gurobi_interface.cc.
|
protectedinherited |
Definition at line 1904 of file linear_solver.cc.
|
inlineoverridevirtual |
Implements MPSolverInterface.
Definition at line 134 of file gurobi_interface.cc.
|
inlineoverridevirtual |
Implements MPSolverInterface.
Definition at line 135 of file gurobi_interface.cc.
|
inlineoverridevirtual |
Implements MPSolverInterface.
Definition at line 136 of file gurobi_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 794 of file gurobi_interface.cc.
|
inlineinherited |
Definition at line 1701 of file linear_solver.h.
|
overridevirtual |
Reimplemented from MPSolverInterface.
Definition at line 1343 of file gurobi_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 801 of file gurobi_interface.cc.
|
inherited |
Definition at line 1881 of file linear_solver.cc.
|
inlineinherited |
Definition at line 1717 of file linear_solver.h.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 629 of file gurobi_interface.cc.
|
protectedinherited |
Definition at line 1851 of file linear_solver.cc.
|
inlineinherited |
Definition at line 1722 of file linear_solver.h.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 865 of file gurobi_interface.cc.
|
inlineinherited |
Definition at line 1712 of file linear_solver.h.
|
inlineinherited |
Definition at line 1719 of file linear_solver.h.
|
inlineinherited |
Definition at line 1706 of file linear_solver.h.
|
overridevirtual |
Reimplemented from MPSolverInterface.
Definition at line 1392 of file gurobi_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 725 of file gurobi_interface.cc.
|
protectedinherited |
Definition at line 1919 of file linear_solver.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 696 of file gurobi_interface.cc.
|
protectedinherited |
Definition at line 1955 of file linear_solver.cc.
|
protectedvirtualinherited |
Definition at line 1960 of file linear_solver.cc.
|
protectedinherited |
Definition at line 1940 of file linear_solver.cc.
|
protectedvirtualinherited |
Reimplemented in CBCInterface, PdlpInterface, and SatInterface.
Definition at line 1966 of file linear_solver.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 755 of file gurobi_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 767 of file gurobi_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 663 of file gurobi_interface.cc.
|
inlinevirtualinherited |
Reimplemented in GLOPInterface.
Definition at line 1738 of file linear_solver.h.
|
protectedinherited |
Definition at line 1947 of file linear_solver.cc.
|
protectedvirtualinherited |
Definition at line 1951 of file linear_solver.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 668 of file gurobi_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 680 of file gurobi_interface.cc.
|
overridevirtual |
Implements MPSolverInterface.
Definition at line 1147 of file gurobi_interface.cc.
|
inlineoverridevirtual |
Implements MPSolverInterface.
Definition at line 142 of file gurobi_interface.cc.
|
inlineoverridevirtual |
Reimplemented from MPSolverInterface.
Definition at line 184 of file gurobi_interface.cc.
|
inlineoverridevirtual |
Implements MPSolverInterface.
Definition at line 155 of file gurobi_interface.cc.
|
inlineinherited |
Definition at line 1703 of file linear_solver.h.
|
overridevirtual |
Reimplemented from MPSolverInterface.
Definition at line 1374 of file gurobi_interface.cc.
|
protectedinherited |
Definition at line 1781 of file linear_solver.h.
|
staticprotectedinherited |
Definition at line 1788 of file linear_solver.h.
|
staticconstexprinherited |
Definition at line 1576 of file linear_solver.h.
|
staticconstexprinherited |
Definition at line 1579 of file linear_solver.h.
|
protectedinherited |
Definition at line 1773 of file linear_solver.h.
|
protectedinherited |
Definition at line 1775 of file linear_solver.h.
|
protectedinherited |
Definition at line 1770 of file linear_solver.h.
|
protectedinherited |
Definition at line 1778 of file linear_solver.h.
|
protectedinherited |
Definition at line 1784 of file linear_solver.h.
|
protectedinherited |
Definition at line 1768 of file linear_solver.h.
|
protectedinherited |
Definition at line 1763 of file linear_solver.h.
|
protectedinherited |
Definition at line 1765 of file linear_solver.h.