cplexapi.optim: LP and QP solver by 'cplexAPI'

View source: R/optim.R

cplexapi.optimR Documentation

LP and QP solver by cplexAPI

Description

This function computes the solution to the quadratic and linear programs using the cplexAPI package.

Usage

cplexapi.optim(Af, bf, nf, A, rhs, sense, modelsense, lb, weight = NULL, ...)

Arguments

Af

The matrix that is involved in the objective function.

bf

The vector that is involved in the objective function.

nf

The number of observations in the data frame.

A

The constraint matrix.

rhs

The rhs vector for the linear constraints.

sense

The sense of the linear constraints.

modelsense

The indicator of whether the model is to max or min an objective function.

lb

The lower bound vector.

weight

The weighting matrix.

...

List of options to be passed to the Gurobi solver. This part is optional.

Value

Returns the optimal point, the optimal value and the status of the solution.

objval

The optimal value.

x

The optimal point.

status

The status of the optimization problem.


conroylau/lpinfer documentation built on Oct. 23, 2022, 9:21 a.m.