Gurobi
Gurobi solver.
Type members
Types
Value members
Concrete methods
Add a mathematical programming constraint to the solver.
Add a mathematical programming constraint to the solver.
- Value parameters:
- mpConstraint
the mathematical programming constraint
Problem builder, should configure the solver and append mathematical model variables and constraints.
Problem builder, should configure the solver and append mathematical model variables and constraints.
- Value parameters:
- numberOfVars
number of variables in the model
Get value of the variable in the specified position. Solution should exist in order for a value to exist.
Get value of the variable in the specified position. Solution should exist in order for a value to exist.
- Value parameters:
- colId
position of the variable
- Returns:
the value of the variable in the solution
Set the column / variable as an binary integer variable
Set the column / variable as an binary integer variable
- Value parameters:
- colId
position of the variable
Set bounds of variable in the specified position.
Set bounds of variable in the specified position.
- Value parameters:
- colId
position of the variable
- lower
domain lower bound
- upper
domain upper bound
Set the column/variable as a float variable
Set the column/variable as a float variable
- Value parameters:
- colId
position of the variable
Set the column/variable as an integer variable
Set the column/variable as an integer variable
- Value parameters:
- colId
position of the variable
Add objective expression to be optimized by the solver.
Add objective expression to be optimized by the solver.
- Value parameters:
- minimize
flag for minimization instead of maximization
- objective
the expression to be optimized
Set a time limit for solver optimization. After the limit is reached the solver stops running.
Set a time limit for solver optimization. After the limit is reached the solver stops running.
- Value parameters:
- limit
the time limit
Set lower bound to unbounded (infinite)
Set lower bound to unbounded (infinite)
- Value parameters:
- colId
position of the variable
Set upper bound to unbounded (infinite)
Set upper bound to unbounded (infinite)
- Value parameters:
- colId
position of the variable
Inherited methods
Add all given mathematical programming constraints to the solver.
Add all given mathematical programming constraints to the solver.
- Value parameters:
- constraints
an array buffer containing the constraints
- Inherited from:
- MPSolver
- Returns:
the objective value of the solution found by the solver
- Note:
The objective value may be the best feasible solution if optimality is not attained or proven.
- Inherited from:
- MPSolver
Set bot upper and lower bounds to unbounded (infinite).
Set bot upper and lower bounds to unbounded (infinite).
- Value parameters:
- colId
position of the variable
- Inherited from:
- MPSolver
- Returns:
the solution found by the solver, for each variable
- Note:
the solution may be the best feasible solution found so far if optimality is not attained or proven.
- Inherited from:
- MPSolver