14.5 Enumerations

AccSolutionStatus

Constants used for defining which solutions statuses are acceptable.

Anything

Accept all solution status except SolutionStatus.Undefined.

Optimal

Accept only optimal solution status.

NearOptimal

Accept only at least near optimal solution status.

Feasible

Accept any feasible solution, even if not optimal.

Certificate

Accept only a certificate.

ObjectiveSense

Used in Model.objective to define the objective sense of the Model.

Undefined

The sense is not defined; trying to optimize a Model whose objective sense is undefined is an error.

Minimize

Minimize the objective.

Maximize

Maximize the objective.

ProblemStatus

Constants defining the problem status.

Unknown

Unknown problem status.

PrimalAndDualFeasible

The problem is feasible.

PrimalFeasible

The problem is at least primal feasible.

DualFeasible

The problem is at least least dual feasible.

PrimalInfeasible

The problem is primal infeasible.

DualInfeasible

The problem is dual infeasible.

PrimalAndDualInfeasible

The problem is primal and dual infeasible.

IllPosed

The problem is illposed.

PrimalInfeasibleOrUnbounded

The problem is primal infeasible or unbounded.

SolutionStatus

Defines properties of either a primal or a dual solution. A model may contain multiple solutions which may have different status. Specifically, there will be individual solutions, and thus solution statuses, for the interior-point, simplex and integer solvers.

Undefined

Undefined solution. This means that no values exist for the relevant solution.

Unknown

The solution status is unknown; this will happen if the user inputs values or a solution is read from a file or the solver stalled.

Optimal

The solution values are feasible and optimal.

NearOptimal

The solution values are feasible and nearly optimal.

Feasible

The solution is feasible.

NearFeasible

The solution is nearly feasible.

Certificate

The solution is a certificate of infeasibility (primal or dual, depending on which solution it belongs to).

NearCertificate

The solution is nearly a certificate of infeasibility (primal or dual, depending on which solution it belongs to).

IllposedCert

The solution is a certificate of illposedness.

SolutionType

Used when requesting a specific solution from a Model.

Default

Auto-select the default solution; usually this will be the integer solution, if available, otherwise the basic solution, if available, otherwise the interior-point solution.

Basic

Select the basic solution.

Interior

Select the interior-point solution.

Integer

Select the integer solution.