runMIP: (Internal) Run MIP solver

View source: R/solver_functions.R

runMIPR Documentation

(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
)

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.

Value

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


TestDesign documentation built on Sept. 11, 2024, 7:12 p.m.