[ library(range_eplex) | The ECLiPSe Libraries | Reference Manual | Alphabetic Index ]

lp_probe(+Handle, +Objective, -Cost)

Invoke external solver using a temporary objective function.
Handle
Handle to existing solver state
Objective
Temporary objective function
Cost
Value of solution

Description

Similar to lp_solve/2, but optimize for a different objective function rather than the one that was specified during solver setup. After the call to this predicate, the original objective function is restored for the external solver. However, any constraints collected and the eplex values for the problem variables from the temporary objective function (obtainable from lp_var_get/4) are retained.

Fail Conditions

External solver was unable to find a solution.

Exceptions

(eplex_suboptimal)
Solution was found, but is possibly suboptimal
(eplex_unbounded)
Problem is unbounded, no solution values
(eplex_unknown)
Result is unknown (infeasible or unbounded)
(eplex_abort)
External solver aborted for some reason

See Also

lp_solve / 2, lp_setup / 4