Model and Solve Mixed Integer Linear Programs


[Up] [Top]

Documentation for package ‘ompr’ version 0.7.0

Help Pages

ompr-package A package to Model (Mixed) Integer Programs
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
extract_constraints Extract the constraint matrix, the right hand side and the sense from a model
get_solution Get variable values from a solution
get_solution_ Get variable values from a solution
MIPModel Create a new MIP 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
ompr A package to Model (Mixed) Integer Programs
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 Construct a sum expression
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