Example: The balanced academic curriculum problem More...
Classes | |
class | ValBestLoad |
Custom value selection class for a view-value branching. More... |
Public Types | |
enum | { BRANCHING_NAIVE, BRANCHING_LOAD, BRANCHING_LOAD_REV } |
Branching variants. More... |
Public Member Functions | |
BACP (const SizeOptions &opt) | |
Actual model. | |
BACP (bool share, BACP &bacp) | |
Constructor for copying bacp. | |
virtual Space * | copy (bool share) |
Copy during cloning. | |
virtual IntVar | cost (void) const |
Return solution cost. | |
virtual void | print (std::ostream &os) const |
Print solution. | |
![]() | |
ScriptBase (void) | |
Default constructor. | |
ScriptBase (bool share, ScriptBase &e) | |
Constructor used for cloning. | |
virtual void | compare (const Space &, std::ostream &os) const |
Compare with s. |
Protected Attributes | |
IntVarArray | l |
Academic load for each period. | |
IntVar | u |
Maximum academic load. | |
IntVarArray | q |
Number of courses assigned to a period. | |
IntVarArray | x |
Period to which a course is assigned. |
Static Protected Attributes | |
const Curriculum | curr |
The curriculum to be scheduled. |
Related Functions | |
(Note that these are not member functions.) | |
int | main (int argc, char *argv[]) |
Main-function. |
Parameters for balanced academic curriculum | |
const Course | courses8 [] |
Courses for first example. | |
const char * | prereqs8 [] |
Prerequisites for first example. | |
const Course | courses10 [] |
Courses for second example. | |
const char * | prereqs10 [] |
Prerequisites for second example. | |
const Course | courses12 [] |
Courses for third example. | |
const char * | prereqs12 [] |
Prerequisites for third example. | |
const Curriculum | curriculum [] |
The example specifications. | |
const unsigned int | n_examples = sizeof(curriculum) / sizeof(Curriculum) |
The number of examples. |
Additional Inherited Members | |
![]() | |
template<class Script , template< class > class Engine, class Options > | |
static void | run (const Options &opt) |
Example: The balanced academic curriculum problem
This is problem 030 from http://www.csplib.org/.
A custom value selection from "A CP Approach to the Balanced Academic Curriculum Problem", J.N. Monette, P. Schaus, S. Zampelli, Y. Deville, and P. Dupont is available.
anonymous enum |
|
inline |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.
|
related |
Courses for first example.
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
staticprotected |
|
protected |
|
protected |
|
protected |