Polarith AI
1.8

◆ AddObjective()

ReadOnlyCollection<float> AddObjective ( bool  minimized,
bool  normalized,
float  constraint = 0.0f,
bool  unlimited = false 
)

Adds an objective (one row to the problem matrix).

Parameters
minimizedSpecifies whether the added objective should be considered for minimization or maximization.
normalizedSpecifies whether the objective will be normalized.
constraintSpecifies the epsilon constraint for the objective.
unlimitedSpecifies if the objective is unlimited. Only one objective can be unlimited.
Returns
Read-only reference to the added objective.
Imprint