C++ Reference: class Assignment

This documentation is automatically generated.

An Assignment is a variable -> domains mapping, used to report solutions to the user.
Method
Activate

Return type: void

Arguments: const IntVar* const var

Activate

Return type: void

Arguments: const IntervalVar* const var

Activate

Return type: void

Arguments: const SequenceVar* const var

Activated

Return type: bool

Arguments: const IntVar* const var

Activated

Return type: bool

Arguments: const IntervalVar* const var

Activated

Return type: bool

Arguments: const SequenceVar* const var

ActivatedObjective

Return type: bool

ActivateObjective

Return type: void

Add

Return type: IntVarElement*

Arguments: IntVar* const var

Add

Return type: void

Arguments: const std::vector<IntVar*>& vars

Add

Return type: IntervalVarElement*

Arguments: IntervalVar* const var

Add

Return type: void

Arguments: const std::vector<IntervalVar*>& vars

Add

Return type: SequenceVarElement*

Arguments: SequenceVar* const var

Add

Return type: void

Arguments: const std::vector<SequenceVar*>& vars

AddObjective

Return type: void

Arguments: IntVar* const v

AreAllElementsBound

Return type: bool

Assignment

Return type: explicit

Arguments: Solver* const s

Assignment

Return type: explicit

Arguments: const Assignment* const copy

~Assignment

BackwardSequence

Return type: const std::vector<int>&

Arguments: const SequenceVar* const var

Bound

Return type: bool

Arguments: const IntVar* const var

Clear

Return type: void

ClearObjective

Return type: void

Contains

Return type: bool

Arguments: const IntVar* const var

Contains

Return type: bool

Arguments: const IntervalVar* const var

Contains

Return type: bool

Arguments: const SequenceVar* const var

Copy

Return type: void

Arguments: const Assignment* assignment

Copies 'assignment' to the current assignment, clearing its previous content.

CopyIntersection

Return type: void

Arguments: const Assignment* assignment

Copies the intersection of the two assignments to the current assignment.

Deactivate

Return type: void

Arguments: const IntVar* const var

Deactivate

Return type: void

Arguments: const IntervalVar* const var

Deactivate

Return type: void

Arguments: const SequenceVar* const var

DeactivateObjective

Return type: void

DebugString

Return type: std::string

DurationMax

Return type: int64

Arguments: const IntervalVar* const var

DurationMin

Return type: int64

Arguments: const IntervalVar* const var

DurationValue

Return type: int64

Arguments: const IntervalVar* const var

Empty

Return type: bool

EndMax

Return type: int64

Arguments: const IntervalVar* const var

EndMin

Return type: int64

Arguments: const IntervalVar* const var

EndValue

Return type: int64

Arguments: const IntervalVar* const var

FastAdd

Return type: IntVarElement*

Arguments: IntVar* const var

Adds without checking if variable has been previously added.

FastAdd

Return type: IntervalVarElement*

Arguments: IntervalVar* const var

Adds without checking if variable has been previously added.

FastAdd

Return type: SequenceVarElement*

Arguments: SequenceVar* const var

Adds without checking if the variable had been previously added.

ForwardSequence

Return type: const std::vector<int>&

Arguments: const SequenceVar* const var

HasObjective

Return type: bool

IntervalVarContainer

Return type: const IntervalContainer&

IntVarContainer

Return type: const IntContainer&

TODO(user): Add element iterators to avoid exposing container class.

Load

Return type: bool

Arguments: const std::string& filename

Loads an assignment from a file; does not add variables to the assignment (only the variables contained in the assignment are modified).

Load

Return type: bool

Arguments: File* file

Load

Return type: void

Arguments: const AssignmentProto& assignment_proto

Max

Return type: int64

Arguments: const IntVar* const var

Min

Return type: int64

Arguments: const IntVar* const var

MutableIntervalVarContainer

Return type: IntervalContainer*

MutableIntVarContainer

Return type: IntContainer*

MutableSequenceVarContainer

Return type: SequenceContainer*

NumIntervalVars

Return type: int

NumIntVars

Return type: int

NumSequenceVars

Return type: int

Objective

Return type: IntVar*

ObjectiveBound

Return type: bool

ObjectiveMax

Return type: int64

ObjectiveMin

Return type: int64

ObjectiveValue

Return type: int64

PerformedMax

Return type: int64

Arguments: const IntervalVar* const var

PerformedMin

Return type: int64

Arguments: const IntervalVar* const var

PerformedValue

Return type: int64

Arguments: const IntervalVar* const var

Restore

Return type: void

Save

Return type: bool

Arguments: const std::string& filename

Saves the assignment to a file.

Save

Return type: bool

Arguments: File* file

Save

Return type: void

Arguments: AssignmentProto* const assignment_proto

SequenceVarContainer

Return type: const SequenceContainer&

SetBackwardSequence

Return type: void

Arguments: const SequenceVar* const var, const std::vector<int>& backward_sequence

SetDurationMax

Return type: void

Arguments: const IntervalVar* const var, int64 m

SetDurationMin

Return type: void

Arguments: const IntervalVar* const var, int64 m

SetDurationRange

Return type: void

Arguments: const IntervalVar* const var, int64 mi, int64 ma

SetDurationValue

Return type: void

Arguments: const IntervalVar* const var, int64 value

SetEndMax

Return type: void

Arguments: const IntervalVar* const var, int64 m

SetEndMin

Return type: void

Arguments: const IntervalVar* const var, int64 m

SetEndRange

Return type: void

Arguments: const IntervalVar* const var, int64 mi, int64 ma

SetEndValue

Return type: void

Arguments: const IntervalVar* const var, int64 value

SetForwardSequence

Return type: void

Arguments: const SequenceVar* const var, const std::vector<int>& forward_sequence

SetMax

Return type: void

Arguments: const IntVar* const var, int64 m

SetMin

Return type: void

Arguments: const IntVar* const var, int64 m

SetObjectiveMax

Return type: void

Arguments: int64 m

SetObjectiveMin

Return type: void

Arguments: int64 m

SetObjectiveRange

Return type: void

Arguments: int64 l, int64 u

SetObjectiveValue

Return type: void

Arguments: int64 value

SetPerformedMax

Return type: void

Arguments: const IntervalVar* const var, int64 m

SetPerformedMin

Return type: void

Arguments: const IntervalVar* const var, int64 m

SetPerformedRange

Return type: void

Arguments: const IntervalVar* const var, int64 mi, int64 ma

SetPerformedValue

Return type: void

Arguments: const IntervalVar* const var, int64 value

SetRange

Return type: void

Arguments: const IntVar* const var, int64 l, int64 u

SetSequence

Return type: void

Arguments: const SequenceVar* const var, const std::vector<int>& forward_sequence, const std::vector<int>& backward_sequence, const std::vector<int>& unperformed

SetStartMax

Return type: void

Arguments: const IntervalVar* const var, int64 m

SetStartMin

Return type: void

Arguments: const IntervalVar* const var, int64 m

SetStartRange

Return type: void

Arguments: const IntervalVar* const var, int64 mi, int64 ma

SetStartValue

Return type: void

Arguments: const IntervalVar* const var, int64 value

SetUnperformed

Return type: void

Arguments: const SequenceVar* const var, const std::vector<int>& unperformed

SetValue

Return type: void

Arguments: const IntVar* const var, int64 value

Size

Return type: int

StartMax

Return type: int64

Arguments: const IntervalVar* const var

StartMin

Return type: int64

Arguments: const IntervalVar* const var

StartValue

Return type: int64

Arguments: const IntervalVar* const var

Store

Return type: void

Unperformed

Return type: const std::vector<int>&

Arguments: const SequenceVar* const var

Value

Return type: int64

Arguments: const IntVar* const var