R: Model and Solve Mixed Integer Linear Programs

# Model and Solve Mixed Integer Linear Programs

## Documentation for package ‘ompr’ version 1.0.4

- DESCRIPTION file.
- Package NEWS.

## Help Pages

additional_solver_output | Retrieve additional solver specific output
add_constraint | Add a constraint
add_constraint_ | Add a constraint
add_variable | Add a variable to the model
add_variable_ | Add a variable to the model
as_colwise | As_colwise
colwise | Format variables colwise
extract_constraints | Extract the constraint matrix, the right hand side and the sense from a model
get_column_duals | Gets the column duals of a solution
get_row_duals | Gets the row duals of a solution
get_solution | Get variable values from a solution
get_solution_ | Get variable values from a solution
MILPModel | Experimental: Create a new MILP Model
MIPModel | Create a new MIP Model
nconstraints | Number of variables (rows) of the model
new_solution | Create a new solution
nvars | Number of variables of a model
objective_function | Extract the objective function from a model
objective_value | Extract the numerical objective value from a solution
set_bounds | Set the bounds of a variable
set_bounds_ | Set the bounds of a variable
set_objective | Set the model objective
set_objective_ | Set the model objective
solver_status | Get the solver status from a solution
solve_model | Solve a model
sum_expr | Sum over indexes
sum_over | Sum over indexes
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