Learn R Programming

TestDesign (version 1.7.0)

runMIP: (Internal) Run MIP solver

Description

runMIP is an internal function for running a MIP solver.

Usage

runMIP(
  solver,
  obj,
  mat,
  dir,
  rhs,
  maximize,
  types,
  verbosity,
  time_limit,
  gap_limit_abs,
  gap_limit
)

Value

runMIP returns solver output. This will have different structures depending on what solver is used.

Arguments

solver

the solver name.

obj

a length-nd vector containing objective values.

mat

a (nc, nd) matrix containing left-hand side constraint coefficients.

dir

a length-nc vector containing equality signs.

rhs

a length-nc vector containing right-hand side values.

maximize

TRUE to maximize the objective function. FALSE to minimize the objective function.

verbosity

the verbosity level.

time_limit

the time limit.

gap_limit_abs

the gap limit in absolute metric. This determines the criteria the solver uses to declare that optimality is reached.

gap_limit

the gap limit in relative metric. This determines the criteria the solver uses to declare that optimality is reached.