|
| LegacyOrtoolsLinearProblem (bool isMip, const std::string &solverName) |
|
operations_research::MPSolver * | getMpSolver () |
|
| OrtoolsLinearProblem (bool isMip, const std::string &solverName) |
|
OrtoolsMipVariable * | addNumVariable (double lb, double ub, const std::string &name) override |
| Create a continuous variable.
|
|
OrtoolsMipVariable * | addIntVariable (double lb, double ub, const std::string &name) override |
| Create a integer variable.
|
|
OrtoolsMipVariable * | addVariable (double lb, double ub, bool integer, const std::string &name) override |
| Create a continuous or integer variable.
|
|
OrtoolsMipVariable * | getVariable (const std::string &name) const override |
|
int | variableCount () const override |
|
OrtoolsMipConstraint * | addConstraint (double lb, double ub, const std::string &name) override |
| Add a bounded constraint to the problem.
|
|
OrtoolsMipConstraint * | getConstraint (const std::string &name) const override |
|
int | constraintCount () const override |
|
void | setObjectiveCoefficient (LinearProblemApi::IMipVariable *var, double coefficient) override |
| Set the objective coefficient for a given variable.
|
|
double | getObjectiveCoefficient (const LinearProblemApi::IMipVariable *var) const override |
|
void | setMinimization () override |
| Sets the optimization direction to minimize.
|
|
void | setMaximization () override |
| Sets the optimization direction to maximize.
|
|
bool | isMinimization () const override |
|
bool | isMaximization () const override |
|
OrtoolsMipSolution * | solve (bool verboseSolver) override |
| Solve the problem, returns a IMipSolution.
|
|
void | WriteLP (const std::string &filename) override |
|
double | infinity () const override |
|