These are the functions that can be used to optimize your model and control some solver configuration.
◆ lp_best_bound()
returns the best dual bound found during the search
If your Mixed Integer Optimization concluded without finding the optimal solution, you can retrieve the best dual bound (lower bound in minimization), which is a valid estimate of the best possible value for the optimal solution.
- Parameters
-
lp | the (integer) linear program |
- Returns
- the dual bound (lower bound if minimization)
◆ lp_num_saved_sols()
number of solutions stored in the solution pool
- Parameters
-
lp | the (integer) linear program |
- Returns
- number of solutions in the solution pool
◆ lp_obj_value()
objective value of your optimization
- Parameters
-
lp | the (integer) linear program |
- Returns
- objective value found
◆ lp_optimize()
Optimizes your Mixed Integer Program.
Optimizes your Mixed Integer Program. Returns the problem status, which can be:
0 : LP_OPTIMAL
: optimal solution found
1 : LP_INFEASIBLE
: the problem is infeasible
2 : LP_UNBOUNDED
: the problem is unbounded
3 : LP_FEASIBLE
: a feasible solution was found, but its optimality was not proved
4 : LP_INTINFEASIBLE
: the lp relaxation is feasible but no integer feasible solution exists
5 : LP_NO_SOL_FOUND
: optimization concluded without finding any feasible solution
6 : LP_ERROR
: the solver reported an error
- Parameters
-
lp | the (integer) linear program |
◆ lp_optimize_as_continuous()
optimizes only the linear programming relaxation of your MIP
Optimizes your Mixed Integer Program relaxing integrality constraints (if any). Returns the problem status, which can be:
0 : LP_OPTIMAL
: optimal solution found
1 : LP_INFEASIBLE
: the problem is infeasible
2 : LP_UNBOUNDED
: the problem is unbounded
3 : LP_FEASIBLE
: a feasible solution was found, but its optimality was not proved
4 : LP_INTINFEASIBLE
: the lp relaxation is feasible but no integer feasible solution exists
5 : LP_NO_SOL_FOUND
: optimization concluded without finding any feasible solution
6 : LP_ERROR
: the solver reported an error
- Parameters
-
lp | the (integer) linear program |
◆ lp_reduced_cost()
reduced cost for columns - only available when solving continous models
- Parameters
-
lp | the (integer) linear program |
- Returns
- vector with reduced costs
◆ lp_saved_sol_obj()
objective value for the isol-th solution of the solution pool
- Parameters
-
lp | the (integer) linear program |
isol | the solution index |
- Returns
- objective value of the i-th solution from the solution pool
◆ lp_saved_sol_x()
objective value for the isol-th solution of the solution pool
- Parameters
-
lp | the (integer) linear program |
isol | the solution index |
- Returns
- solution vector of the i-th solution from the solution pool
◆ lp_x()
returns the vector of solution values
- Parameters
-
lp | the (integer) linear program |
- Returns
- solution vector