C++ Reference
C++ Reference: Routing
Detailed Description
Definition at line 163 of file routing_lp_scheduling.h.
Public Member Functions | |
| virtual | ~RoutingLinearSolverWrapper () |
| virtual void | Clear ()=0 |
| virtual int | CreateNewPositiveVariable ()=0 |
| virtual void | SetVariableName (int index, absl::string_view name)=0 |
| virtual bool | SetVariableBounds (int index, int64_t lower_bound, int64_t upper_bound)=0 |
| virtual void | SetVariableDisjointBounds (int index, const std::vector< int64_t > &starts, const std::vector< int64_t > &ends)=0 |
| virtual int64_t | GetVariableLowerBound (int index) const =0 |
| virtual int64_t | GetVariableUpperBound (int index) const =0 |
| virtual void | SetObjectiveCoefficient (int index, double coefficient)=0 |
| virtual double | GetObjectiveCoefficient (int index) const =0 |
| virtual void | ClearObjective ()=0 |
| virtual int | NumVariables () const =0 |
| virtual int | CreateNewConstraint (int64_t lower_bound, int64_t upper_bound)=0 |
| virtual void | SetCoefficient (int ct, int index, double coefficient)=0 |
| virtual bool | IsCPSATSolver ()=0 |
| virtual void | AddObjectiveConstraint ()=0 |
| virtual void | AddMaximumConstraint (int max_var, std::vector< int > vars)=0 |
| virtual void | AddProductConstraint (int product_var, std::vector< int > vars)=0 |
| virtual void | SetEnforcementLiteral (int ct, int condition)=0 |
| virtual DimensionSchedulingStatus | Solve (absl::Duration duration_limit)=0 |
| virtual int64_t | GetObjectiveValue () const =0 |
| virtual double | GetValue (int index) const =0 |
| virtual bool | SolutionIsInteger () const =0 |
| virtual void | SetParameters (const std::string ¶meters)=0 |
| virtual bool | ModelIsEmpty () const |
| virtual std::string | PrintModel () const =0 |
| int | AddVariable (int64_t lower_bound, int64_t upper_bound) |
| int | AddLinearConstraint (int64_t lower_bound, int64_t upper_bound, const std::vector< std::pair< int, double >> &variable_coeffs) |
| int | AddReifiedLinearConstraint (int64_t lower_bound, int64_t upper_bound, const std::vector< std::pair< int, double >> &weighted_variables) |
Constructor & Destructor Documentation
◆ ~RoutingLinearSolverWrapper()
|
inlinevirtual |
Definition at line 165 of file routing_lp_scheduling.h.
Member Function Documentation
◆ AddLinearConstraint()
|
inline |
Definition at line 211 of file routing_lp_scheduling.h.
◆ AddMaximumConstraint()
|
pure virtual |
Implemented in RoutingGlopWrapper, and RoutingCPSatWrapper.
◆ AddObjectiveConstraint()
|
pure virtual |
Implemented in RoutingCPSatWrapper, and RoutingGlopWrapper.
◆ AddProductConstraint()
|
pure virtual |
Implemented in RoutingGlopWrapper, and RoutingCPSatWrapper.
◆ AddReifiedLinearConstraint()
|
inline |
Definition at line 224 of file routing_lp_scheduling.h.
◆ AddVariable()
|
inline |
Definition at line 202 of file routing_lp_scheduling.h.
◆ Clear()
|
pure virtual |
Implemented in RoutingCPSatWrapper, and RoutingGlopWrapper.
◆ ClearObjective()
|
pure virtual |
Implemented in RoutingCPSatWrapper, and RoutingGlopWrapper.
◆ CreateNewConstraint()
|
pure virtual |
Implemented in RoutingCPSatWrapper, and RoutingGlopWrapper.
◆ CreateNewPositiveVariable()
|
pure virtual |
Implemented in RoutingCPSatWrapper, and RoutingGlopWrapper.
◆ GetObjectiveCoefficient()
|
pure virtual |
Implemented in RoutingCPSatWrapper, and RoutingGlopWrapper.
◆ GetObjectiveValue()
|
pure virtual |
Implemented in RoutingCPSatWrapper, and RoutingGlopWrapper.
◆ GetValue()
|
pure virtual |
Implemented in RoutingCPSatWrapper, and RoutingGlopWrapper.
◆ GetVariableLowerBound()
|
pure virtual |
Implemented in RoutingCPSatWrapper, and RoutingGlopWrapper.
◆ GetVariableUpperBound()
|
pure virtual |
Implemented in RoutingCPSatWrapper, and RoutingGlopWrapper.
◆ IsCPSATSolver()
|
pure virtual |
Implemented in RoutingCPSatWrapper, and RoutingGlopWrapper.
◆ ModelIsEmpty()
|
inlinevirtual |
Reimplemented in RoutingCPSatWrapper.
Definition at line 196 of file routing_lp_scheduling.h.
◆ NumVariables()
|
pure virtual |
Implemented in RoutingCPSatWrapper, and RoutingGlopWrapper.
◆ PrintModel()
|
pure virtual |
Implemented in RoutingCPSatWrapper, and RoutingGlopWrapper.
◆ SetCoefficient()
|
pure virtual |
Implemented in RoutingCPSatWrapper, and RoutingGlopWrapper.
◆ SetEnforcementLiteral()
|
pure virtual |
Implemented in RoutingGlopWrapper, and RoutingCPSatWrapper.
◆ SetObjectiveCoefficient()
|
pure virtual |
Implemented in RoutingCPSatWrapper, and RoutingGlopWrapper.
◆ SetParameters()
|
pure virtual |
Implemented in RoutingGlopWrapper, and RoutingCPSatWrapper.
◆ SetVariableBounds()
|
pure virtual |
Implemented in RoutingCPSatWrapper, and RoutingGlopWrapper.
◆ SetVariableDisjointBounds()
|
pure virtual |
Implemented in RoutingCPSatWrapper, and RoutingGlopWrapper.
◆ SetVariableName()
|
pure virtual |
Implemented in RoutingCPSatWrapper, and RoutingGlopWrapper.
◆ SolutionIsInteger()
|
pure virtual |
Implemented in RoutingCPSatWrapper, and RoutingGlopWrapper.
◆ Solve()
|
pure virtual |
Implemented in RoutingCPSatWrapper, and RoutingGlopWrapper.
The documentation for this class was generated from the following file: