Example: All-interval series More...
Public Member Functions | |
AllInterval (const SizeOptions &opt) | |
Actual model. More... | |
AllInterval (bool share, AllInterval &s) | |
Constructor for cloning e. More... | |
virtual Space * | copy (bool share) |
Copy during cloning. More... | |
virtual void | print (std::ostream &os) const |
Print solution. More... | |
![]() | |
ScriptBase (const Options &opt) | |
Constructor. More... | |
ScriptBase (bool share, ScriptBase &e) | |
Constructor used for cloning. More... | |
virtual void | compare (const Space &home, std::ostream &os) const |
Compare with s. More... | |
Related Functions | |
(Note that these are not member functions.) | |
int | main (int argc, char *argv[]) |
Main-function. More... | |
Additional Inherited Members | |
![]() | |
static std::ostream & | select_ostream (const char *sn, std::ofstream &ofs) |
Choose output stream according to sn. More... | |
template<class Script , template< class > class Engine, class Options > | |
static void | run (const Options &opt, Script *s=NULL) |
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/.
Definition at line 66 of file all-interval.cpp.
|
inline |
Actual model.
Definition at line 74 of file all-interval.cpp.
|
inline |
Constructor for cloning e.
Definition at line 95 of file all-interval.cpp.
|
inlinevirtual |
Copy during cloning.
Definition at line 102 of file all-interval.cpp.
|
inlinevirtual |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.
Definition at line 107 of file all-interval.cpp.
|
related |
Main-function.
Definition at line 121 of file all-interval.cpp.