Generate all assignments except the last variable and complete it to get a solution. More...
#include <float.hh>
Public Member Functions | |
ExtAssignment (int n, const Gecode::FloatVal &d, Gecode::FloatNum s, const Test *pb) | |
Initialize assignments for n variables and values d with step s. More... | |
virtual bool | operator() (void) const |
Test whether all assignments have been iterated. More... | |
virtual void | operator++ (void) |
Move to next assignment. More... | |
virtual Gecode::FloatVal | operator[] (int i) const |
Return value for variable i. More... | |
virtual void | set (int i, const Gecode::FloatVal &val) |
Set assignment to value val for variable i. More... | |
virtual | ~ExtAssignment (void) |
Destructor. More... | |
![]() | |
Assignment (int n0, const Gecode::FloatVal &d0) | |
Initialize assignments for n0 variables and values d0. More... | |
int | size (void) const |
Return number of variables. More... | |
virtual | ~Assignment (void) |
Destructor. More... | |
Protected Attributes | |
const Test * | curPb |
Current problem used to complete assignment. More... | |
Gecode::FloatVal * | dsv |
Iterator for each variable. More... | |
Gecode::FloatNum | step |
Step for next assignment. More... | |
![]() | |
int | n |
Number of variables. More... | |
Gecode::FloatVal | d |
Domain for each variable. More... | |
Generate all assignments except the last variable and complete it to get a solution.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Test whether all assignments have been iterated.
Implements Test::Float::Assignment.
|
virtual |
Move to next assignment.
Implements Test::Float::Assignment.
|
inlinevirtual |
Return value for variable i.
Implements Test::Float::Assignment.
|
inlinevirtual |
Set assignment to value val for variable i.
Implements Test::Float::Assignment.
|
protected |
|
protected |
|
protected |