Description Usage Arguments Value Author(s) References Examples
Solves the linear program
1 2 3 4 5 | min: obj * x
subject to: A %*% x <= b
Aeq %*% x == beq
lb[j] <= x[j] <= ub[j]
|
where x is a vector of n decision variables, obj is
a vector of n obective coefficients, A is an ldA
by n matrix of inequality constraint coefficients, b is a
vector of ldA inequality constraint values, Aeq is
an ldAeq by n matrix of equality constraint coefficients,
beq is a vector of ldAeq equailty constraint values, and
ub and lb are respectively vectors of n upper and
lower bounds on the decision variables.
1 2 |
obj |
a numeric vector of length |
A |
a numeric matrix with |
b |
a numeric vector of length |
Aeq |
a numeric matrix with |
beq |
a numeric vector of length |
lb |
a numeric vector of length |
ub |
a numeric vector of length |
intvec |
a vector of unique positive integer values from |
control |
a list containing control parameters for the MILP solver. |
A list with the following components:
objective |
a single numeric value containing the optimal value of the objective function (provided a finite optimal solution is found). |
x |
a numeric vector of length |
status |
an integer value indicating the exit status of the MILP solver.
A value of |
message |
a character string describing the value of |
control |
a list containing the control parameters used in the MILP solver. |
Possible exit statuses of the MILP solver:
| 0: | "optimal solution found" |
| 1: | "the model is sub-optimal" |
| 2: | "the model is infeasible" |
| 3: | "the model is unbounded" |
| 4: | "the model is degenerate" |
| 5: | "numerical failure encountered" |
| 6: | "process aborted" |
| 7: | "timeout" |
| 9: | "the model was solved by presolve" |
| 10: | "the branch and bound routine failed" |
| 11: | "the branch and bound was stopped because of a break-at-first or break-at-value" |
| 12: | "a feasible branch and bound solution was found" |
| 13: | "no feasible branch and bound solution was found" |
Kjell Konis kjell.konis@epfl.ch.
lp\_solve: http://lpsolve.sourceforge.net/5.5/index.htm
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.