ompr
  • Home
  • Overview
  • Reference

Function reference

version 0.5.0.9002

Build a model

Add a constraint

  • add_constraint
  • add_constraint_
  • add_constraint_

Add a variable to the model

  • add_variable
  • add_variable_
  • add_variable_

Create a new MIP Model

  • MIPModel

Set the bounds of a variable

  • set_bounds
  • set_bounds_
  • set_bounds_

Set the model objective

  • set_objective
  • set_objective_
  • set_objective_

Construct a sum expression

  • sum_expr

Solve a model

Get variable values from a solution

  • get_solution
  • get_solution_
  • get_solution_

Extract the numerical objective value from a solution

  • objective_value

Solve a model

  • solve_model

Get the solver status from a solution

  • solver_status

Solver-developer functions

Extract the constraint matrix, the right hand side and the directions from a model

  • extract_constraints

Create a new solution

  • new_solution

Number of variables of a model

  • nvars

Extract the objective function from a model

  • objective_function

Variable lower and upper bounds of a model

  • variable_bounds

Get all unique names of the model variables

  • variable_keys

Variable types of a model

  • variable_types

Contents

  • Build a model
  • Solve a model
  • Solver-developer functions

Developed by Dirk Schumacher.

Site built with pkgdown.