Example: Job Shop Scheduling More...
Public Member Functions | |
| JobShopBase (const JobShopOptions &o) | |
| Actual model. | |
| void | nooverload (void) |
| Do not overload machines. | |
| virtual IntVar | cost (void) const |
| Return cost. | |
| JobShopBase (JobShopBase &s) | |
| Constructor for cloning s. | |
| virtual void | print (std::ostream &os) const |
| Print solution. | |
| Public Member Functions inherited from Gecode::Driver::ScriptBase< Driver::IgnoreStepOption< IntMinimizeSpace > > | |
| ScriptBase (const Options &opt) | |
| Constructor. | |
| ScriptBase (ScriptBase &e) | |
| Constructor used for cloning. | |
| virtual void | compare (const Space &home, std::ostream &os) const |
| Compare with s. | |
| Public Member Functions inherited from Gecode::Driver::IgnoreStepOption< BaseSpace > | |
| IgnoreStepOption (const Options &) | |
| Constructor. | |
| IgnoreStepOption (BaseSpace &e) | |
| Constructor used for cloning. | |
Protected Attributes | |
| const JobShopOptions & | opt |
| Options. | |
| const Spec | spec |
| Specification. | |
| IntVarArray | start |
| Start times for each step in a job. | |
| IntVar | makespan |
| Makespan. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from Gecode::Driver::ScriptBase< Driver::IgnoreStepOption< IntMinimizeSpace > > | |
| static std::ostream & | select_ostream (const char *sn, std::ofstream &ofs) |
| Choose output stream according to sn. | |
| static void | run (const Options &opt, Script *s=nullptr) |
Detailed Description
Example: Job Shop Scheduling
The instance is either the name of a built-in instance (such as ft06) or a file in the OR-Library and JSPLIB layout. In a file with several instances, such as OR-Library's jobshop1.txt, select one with -param instance=la01 (or by number). Use -spec with a spec file for other layouts; like the example's own spec, it must define n_jobs, n_machines, machine, and duration, and check them in the same way.
Definition at line 339 of file job-shop.cpp.
Constructor & Destructor Documentation
◆ JobShopBase() [1/2]
|
inline |
Actual model.
Definition at line 351 of file job-shop.cpp.
◆ JobShopBase() [2/2]
|
inline |
Constructor for cloning s.
Definition at line 395 of file job-shop.cpp.
Member Function Documentation
◆ nooverload()
|
inline |
Do not overload machines.
Definition at line 368 of file job-shop.cpp.
◆ cost()
|
inlinevirtual |
Return cost.
Definition at line 391 of file job-shop.cpp.
◆ print()
|
inlinevirtual |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< Driver::IgnoreStepOption< IntMinimizeSpace > >.
Definition at line 402 of file job-shop.cpp.
Member Data Documentation
◆ opt
|
protected |
Definition at line 342 of file job-shop.cpp.
◆ spec
|
protected |
Specification.
Definition at line 344 of file job-shop.cpp.
◆ start
|
protected |
Start times for each step in a job.
Definition at line 346 of file job-shop.cpp.
◆ makespan
|
protected |
Makespan.
Definition at line 348 of file job-shop.cpp.
The documentation for this class was generated from the following file:
- examples/job-shop.cpp
