Definition at line 1592 of file linear_solver.h.
Public Types | |
| enum | SynchronizationStatus { MUST_RELOAD, MODEL_SYNCHRONIZED, SOLUTION_SYNCHRONIZED } |
Public Member Functions | |
| MPSolverInterface (MPSolver *const solver) | |
| virtual | ~MPSolverInterface () |
| virtual MPSolver::ResultStatus | Solve (const MPSolverParameters ¶m)=0 |
| virtual void | Write (const std::string &filename) |
| virtual void | Reset ()=0 |
| virtual void | SetOptimizationDirection (bool maximize)=0 |
| virtual void | SetVariableBounds (int index, double lb, double ub)=0 |
| virtual void | SetVariableInteger (int index, bool integer)=0 |
| virtual void | SetConstraintBounds (int index, double lb, double ub)=0 |
| virtual void | AddRowConstraint (MPConstraint *const ct)=0 |
| virtual bool | AddIndicatorConstraint (MPConstraint *const ct) |
| virtual void | AddVariable (MPVariable *const var)=0 |
| virtual void | SetCoefficient (MPConstraint *const constraint, const MPVariable *const variable, double new_value, double old_value)=0 |
| virtual void | ClearConstraint (MPConstraint *const constraint)=0 |
| virtual void | SetObjectiveCoefficient (const MPVariable *const variable, double coefficient)=0 |
| virtual void | SetObjectiveOffset (double value)=0 |
| virtual void | ClearObjective ()=0 |
| virtual void | BranchingPriorityChangedForVariable (int var_index) |
| virtual int64 | iterations () const =0 |
| virtual int64 | nodes () const =0 |
| virtual double | best_objective_bound () const =0 |
| double | trivial_worst_objective_bound () const |
| double | objective_value () const |
| virtual MPSolver::BasisStatus | row_status (int constraint_index) const =0 |
| virtual MPSolver::BasisStatus | column_status (int variable_index) const =0 |
| bool | CheckSolutionIsSynchronized () const |
| virtual bool | CheckSolutionExists () const |
| bool | CheckSolutionIsSynchronizedAndExists () const |
| virtual bool | CheckBestObjectiveBoundExists () const |
| virtual bool | IsContinuous () const =0 |
| virtual bool | IsLP () const =0 |
| virtual bool | IsMIP () const =0 |
| 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 std::string | SolverVersion () const =0 |
| virtual void * | underlying_solver ()=0 |
| virtual double | ComputeExactConditionNumber () const |
| virtual void | SetStartingLpBasis (const std::vector< MPSolver::BasisStatus > &variable_statuses, const std::vector< MPSolver::BasisStatus > &constraint_statuses) |
| virtual bool | InterruptSolve () |
| virtual bool | NextSolution () |
Static Public Attributes | |
| static const int64 | kUnknownNumberOfIterations = -1 |
| static const int64 | kUnknownNumberOfNodes = -1 |
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 |
Friends | |
| class | MPSolver |
| class | MPConstraint |
| class | MPObjective |
| Enumerator | |
|---|---|
| MUST_RELOAD | |
| MODEL_SYNCHRONIZED | |
| SOLUTION_SYNCHRONIZED | |
Definition at line 1594 of file linear_solver.h.
|
explicit |
|
virtual |
|
inlinevirtual |
Definition at line 1649 of file linear_solver.h.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inlinevirtual |
Definition at line 1675 of file linear_solver.h.
|
virtual |
|
virtual |
| bool operations_research::MPSolverInterface::CheckSolutionIsSynchronized | ( | ) | const |
|
inline |
Definition at line 1705 of file linear_solver.h.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
virtual |
|
inline |
Definition at line 1734 of file linear_solver.h.
|
protected |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
inlinevirtual |
Definition at line 1769 of file linear_solver.h.
|
protected |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inline |
Definition at line 1726 of file linear_solver.h.
|
inlinevirtual |
Definition at line 1772 of file linear_solver.h.
|
pure virtual |
| double operations_research::MPSolverInterface::objective_value | ( | ) | const |
|
inline |
Definition at line 1742 of file linear_solver.h.
|
protectedvirtual |
|
pure virtual |
|
protected |
|
inline |
Definition at line 1747 of file linear_solver.h.
|
pure virtual |
|
inline |
Definition at line 1737 of file linear_solver.h.
|
inline |
Definition at line 1744 of file linear_solver.h.
|
inline |
Definition at line 1731 of file linear_solver.h.
|
pure virtual |
|
protected |
|
pure virtual |
|
protected |
|
protectedpure virtual |
|
protectedvirtual |
|
protectedpure virtual |
|
protected |
|
protectedvirtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedvirtual |
|
inlinevirtual |
Definition at line 1763 of file linear_solver.h.
|
protected |
|
protectedvirtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
| double operations_research::MPSolverInterface::trivial_worst_objective_bound | ( | ) | const |
|
pure virtual |
|
protectedvirtual |
|
inline |
Definition at line 1728 of file linear_solver.h.
|
virtual |
|
friend |
Definition at line 1777 of file linear_solver.h.
|
friend |
Definition at line 1778 of file linear_solver.h.
|
friend |
Definition at line 1774 of file linear_solver.h.
|
staticprotected |
Definition at line 1803 of file linear_solver.h.
|
static |
Definition at line 1609 of file linear_solver.h.
|
static |
Definition at line 1612 of file linear_solver.h.
|
protected |
Definition at line 1791 of file linear_solver.h.
|
protected |
Definition at line 1793 of file linear_solver.h.
|
protected |
Definition at line 1788 of file linear_solver.h.
|
protected |
Definition at line 1796 of file linear_solver.h.
|
protected |
Definition at line 1799 of file linear_solver.h.
|
protected |
Definition at line 1786 of file linear_solver.h.
|
protected |
Definition at line 1781 of file linear_solver.h.
|
protected |
Definition at line 1783 of file linear_solver.h.