Learn R Programming

ivmte (version 1.1.0)

runCplexAPI: Running cplexAPI LP solver

Description

This function solves the LP problem using the cplexAPI package. The object generated by lpSetup is not compatible with the cplexAPI functions. This function adapts the object to solve the LP problem.

Usage

runCplexAPI(lpobj, lpdir)

Arguments

lpobj

list of matrices and vectors defining the linear programming problem.

lpdir

input either CPX_MAX or CPX_MIN, which sets the LP problem as a maximization or minimization problem.

Value

a list of the output from CPLEX. This includes the optimization status, the objective value, the solution vector, amongst other things.