C++ Reference: class OptimizeVar

This documentation is automatically generated.


This class encapsulates an objective. It requires the direction (minimize or maximize), the variable to optimize, and the improvement step.
Method
Accept

Return type: void

Arguments: ModelVisitor* const visitor

AcceptDelta

Return type: bool

Arguments: Assignment* delta, Assignment* deltadelta

Internal methods.

AcceptSolution

Return type: bool

ApplyBound

Return type: void

AtSolution

Return type: bool

BeginNextDecision

Return type: void

Arguments: DecisionBuilder* const db

best

Return type: int64

Returns the best value found during search.

DebugString

Return type: std::string

EnterSearch

Return type: void

OptimizeVar

Arguments: Solver* const s, bool maximize, IntVar* const a, int64 step

~OptimizeVar

Print

Return type: virtual std::string

RefuteDecision

Return type: void

Arguments: Decision* const d

Var

Return type: IntVar*

Returns the variable that is optimized.