![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
#include <routing_lp_scheduling.h>
Public Member Functions | |
virtual | ~RoutingLinearSolverWrapper ()=default |
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 |
This function is meant to override the parameters of the solver. | |
virtual void | AddRoute (absl::Span< const int64_t > nodes, absl::Span< const int > schedule_variables)=0 |
virtual bool | ModelIsEmpty () const |
Returns if the model is empty or not. | |
virtual std::string | PrintModel () const =0 |
Prints an understandable view of the model. | |
int | AddVariable (int64_t lower_bound, int64_t upper_bound) |
Adds a variable with bounds [lower_bound, upper_bound]. | |
int | AddLinearConstraint (int64_t lower_bound, int64_t upper_bound, absl::Span< const std::pair< int, double > > variable_coeffs) |
int | AddReifiedLinearConstraint (int64_t lower_bound, int64_t upper_bound, absl::Span< const std::pair< int, double > > weighted_variables) |
Static Public Attributes | |
static const int | kNoConstraint = -1 |
Definition at line 170 of file routing_lp_scheduling.h.
|
virtualdefault |
|
inline |
Adds a linear constraint, enforcing lower_bound <= sum variable * coeff <= upper_bound, and returns the identifier of that constraint.
Definition at line 227 of file routing_lp_scheduling.h.
|
pure virtual |
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
pure virtual |
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
pure virtual |
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
inline |
Adds a linear constraint and a 0/1 variable that is true iff lower_bound <= sum variable * coeff <= upper_bound, and returns the identifier of that variable.
Definition at line 240 of file routing_lp_scheduling.h.
|
pure virtual |
When solving a scheduling problem, this can be called to add hints that help the underlying solver:
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
inline |
Adds a variable with bounds [lower_bound, upper_bound].
Definition at line 218 of file routing_lp_scheduling.h.
|
pure virtual |
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
pure virtual |
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
pure virtual |
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
pure virtual |
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
pure virtual |
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
pure virtual |
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
pure virtual |
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
pure virtual |
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
pure virtual |
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
pure virtual |
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
inlinevirtual |
Returns if the model is empty or not.
Reimplemented in operations_research::RoutingCPSatWrapper.
Definition at line 212 of file routing_lp_scheduling.h.
|
pure virtual |
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
pure virtual |
Prints an understandable view of the model.
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
pure virtual |
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
pure virtual |
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
pure virtual |
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
pure virtual |
This function is meant to override the parameters of the solver.
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
pure virtual |
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
pure virtual |
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
pure virtual |
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
pure virtual |
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
pure virtual |
Implemented in operations_research::RoutingCPSatWrapper, and operations_research::RoutingGlopWrapper.
|
static |
Definition at line 172 of file routing_lp_scheduling.h.