cplex: Solve a linear program using the cplex solver

Description Usage Arguments Value Examples

Description

Solve a linear program using the cplex solver

Usage

1
cplex(lp, timeout = 60, gap = 0, verbose = FALSE, solverCmd = NULL, ...)

Arguments

lp

An R object that encapsulates the data used to specify a linear program

timeout

The number of CPU seconds before the solver must timeout

gap

Absolute MIP gap

verbose

Verbosity level

Value

Updated lp object

Examples

1
2
3
4
5
6
7
  setwd("/Users/ychien/Documents/code/R/MST/myFormAssembler")
  lp = readRDS("inst/rdsdata/Ex02.rds")
  timeout = 60
  gap = 0
  verbose = FALSE
  solverCmd = "cplex"
  result = cplex(lp, timeout, gap, verbose, solverCmd)

yuehmeir2/myFormAssembler documentation built on June 9, 2021, 3:42 a.m.