|
|
| LegacyOrtoolsLinearProblem (bool isMip, const std::string &solverName) |
| |
|
MPSolver * | getMpSolver () |
| |
|
| OrtoolsLinearProblem (bool isMip, const std::string &solverName) |
| |
|
LinearProblemApi::IMipVariable * | addNumVariable (double lb, double ub, const std::string &name) override |
| | Create a continuous variable.
|
| |
|
LinearProblemApi::IMipVariable * | addIntVariable (double lb, double ub, const std::string &name) override |
| | Create a integer variable.
|
| |
|
LinearProblemApi::IMipVariable * | addVariable (double lb, double ub, bool integer, const std::string &name) override |
| | Create a continuous or integer variable.
|
| |
|
const std::vector< std::unique_ptr< LinearProblemApi::IMipVariable > > & | getVariables () const override |
| |
|
LinearProblemApi::IMipVariable * | getVariable (std::size_t index) const override |
| |
|
LinearProblemApi::IMipVariable * | lookupVariable (const std::string &name) const override |
| |
|
int | variableCount () const override |
| |
|
LinearProblemApi::IMipConstraint * | addConstraint (double lb, double ub, const std::string &name) override |
| | Add a bounded constraint to the problem.
|
| |
|
const std::vector< std::unique_ptr< LinearProblemApi::IMipConstraint > > & | getConstraints () const override |
| |
|
LinearProblemApi::IMipConstraint * | getConstraint (std::size_t index) const override |
| |
|
LinearProblemApi::IMipConstraint * | lookupConstraint (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 | setObjectiveOffset (double objectiveOffset) override |
| | Sets the constant offset for the objective function. More...
|
| |
| double | getObjectiveOffset () const override |
| | Returns the current objective offset value. More...
|
| |
|
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.
|
| |
| OrtoolsMipSolution * | solution (bool verboseSolver) |
| |
|
double | objectiveValue () const override |
| |
|
double | infinity () const override |
| |
|
bool | isLP () const override |
| |