Example: All-interval series More...
Public Member Functions | |
AllInterval (const SizeOptions &opt) | |
Actual model. | |
AllInterval (bool share, AllInterval &e) | |
Constructor for cloning e. | |
virtual Space * | copy (bool share) |
Copy during cloning. | |
virtual void | print (std::ostream &os) const |
Print solution. | |
Related Functions | |
(Note that these are not member functions.) | |
int | main (int argc, char *argv[]) |
Main-function. |
Example: All-interval series
An all-interval series of length is a sequence
where each is an integer between
and
such that the following conditions hold:
See also problem 7 at http://www.csplib.org/.
AllInterval::AllInterval | ( | const SizeOptions & | opt | ) | [inline] |
Actual model.
Definition at line 72 of file all-interval.cpp.
AllInterval::AllInterval | ( | bool | share, |
AllInterval & | e | ||
) | [inline] |
Constructor for cloning e.
Definition at line 96 of file all-interval.cpp.
virtual Space* AllInterval::copy | ( | bool | share | ) | [inline, virtual] |
Copy during cloning.
Definition at line 102 of file all-interval.cpp.
virtual void AllInterval::print | ( | std::ostream & | os | ) | const [inline, virtual] |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase.
Definition at line 107 of file all-interval.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) | [related] |
Main-function.
Definition at line 121 of file all-interval.cpp.