Skip to contents

Build a model

MIPModel()
Create a new MIP Model
MILPModel()
Experimental: Create a new MILP Model
add_variable() add_variable_()
Add a variable to the model
set_objective() set_objective_()
Set the model objective
add_constraint() add_constraint_()
Add a constraint
set_bounds() set_bounds_()
Set the bounds of a variable
sum_over() sum_expr()
Sum over indexes
colwise()
Format variables colwise
as_colwise()
As_colwise

Solve a model

solve_model()
Solve a model
get_solution() get_solution_()
Get variable values from a solution
objective_value()
Extract the numerical objective value from a solution
solver_status()
Get the solver status from a solution
get_column_duals()
Gets the column duals of a solution
get_row_duals()
Gets the row duals of a solution
additional_solver_output()
Retrieve additional solver specific output

Solver-developer functions

new_solution()
Create a new solution
extract_constraints()
Extract the constraint matrix, the right hand side and the sense from a model
nvars()
Number of variables of a model
nconstraints()
Number of variables (rows) of the model
objective_function()
Extract the objective function from a model
variable_bounds()
Variable lower and upper bounds of a model
variable_keys()
Get all unique names of the model variables
variable_types()
Variable types of a model