Add a new constraint to the linear program.
Add a new constraint to the linear program.
The coefficients of the variables for the constraint. If the number of entries exceeds the number of variables in the LP, the extra entries are ignored. If the number of entries is less than the number of variables, coefficients of 0.0 are added by default.
One of LE, for <=, EQ for ==, or GE for =>.
The right-hand side of the constraint.
Set the objective function of the linear program.
Set the objective function of the linear program.
The coefficients of the variables in the objective function, i.e. the entries of c. If the number of entries exceeds the number of variables, the extra entries are ignored. If the number of entries is less than the number of variables, coefficients of 0.0 are added by default.
One of either MIN (to minimize) or MAX (to maximize).
Solve the linear program to compute the optimal objective value.
Solve the linear program to compute the optimal objective value. Note that this instance becomes unuseable after this method completes.
None if an error occurred, otherwise Some((varSettings, opt)), where varSettings is the value assigned to each value to optimize the objective function and opt is the optimal objective value itself.
A linear program. Maximizes or minimizes the function <c,x> subject to the constraint Ax {<.=,>} b, where b, c, and x are vectors and A is a matrix.