Model for solving. More...
Public Types | |
| enum | { BRANCH_AFC , BRANCH_ACTION , BRANCH_CHB } |
| Branching to use. More... | |
| enum | { PROP_ORDER , PROP_UNARY } |
| Propagation to use. More... | |
Public Member Functions | |
| JobShopSolve (const JobShopOptions &o) | |
| Actual model. | |
| JobShopSolve (JobShopSolve &s) | |
| Constructor for cloning s. | |
| virtual Space * | copy (void) |
| Copy during cloning. | |
| Public Member Functions inherited from JobShopBase | |
| 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 Member Functions | |
| double | afc (BoolVar x, int i) const |
| AFC-based cost. | |
| double | action (int i) const |
| Action-based cost. | |
| double | chb (int i) const |
| CHB-based cost. | |
Static Protected Member Functions | |
| static double | afcmerit (const Space &home, BoolVar x, int i) |
| Trampoline function for AFC-based cost. | |
| static double | actionmerit (const Space &home, BoolVar, int i) |
| Trampoline function for Action-based cost. | |
| static double | chbmerit (const Space &home, BoolVar, int i) |
| Trampoline function for CHB-based cost. | |
Protected Attributes | |
| BoolVarArray | sorder |
| Step order variables. | |
| IntSharedArray | fst |
| Record which step is first in order. | |
| IntSharedArray | snd |
| Record which step is second in order. | |
| IntAFC | iafc |
| AFC information. | |
| IntAction | iaction |
| Action information. | |
| BoolAction | baction |
| IntCHB | ichb |
| CHB information. | |
| BoolCHB | bchb |
| Rnd | rnd |
| Random number generator for probing and relaxation. | |
| Protected Attributes inherited from JobShopBase | |
| 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
Model for solving.
Definition at line 480 of file job-shop.cpp.
Member Enumeration Documentation
◆ anonymous enum
| anonymous enum |
◆ anonymous enum
| anonymous enum |
Propagation to use.
| Enumerator | |
|---|---|
| PROP_ORDER | Only propagate order constraints. |
| PROP_UNARY | Also post unary constraints. |
Definition at line 531 of file job-shop.cpp.
Constructor & Destructor Documentation
◆ JobShopSolve() [1/2]
|
inline |
Actual model.
Definition at line 536 of file job-shop.cpp.
◆ JobShopSolve() [2/2]
|
inline |
Constructor for cloning s.
Definition at line 636 of file job-shop.cpp.
Member Function Documentation
◆ afc()
|
inlineprotected |
AFC-based cost.
Definition at line 491 of file job-shop.cpp.
◆ afcmerit()
Trampoline function for AFC-based cost.
Definition at line 496 of file job-shop.cpp.
◆ action()
|
inlineprotected |
Action-based cost.
Definition at line 502 of file job-shop.cpp.
◆ actionmerit()
Trampoline function for Action-based cost.
Definition at line 507 of file job-shop.cpp.
◆ chb()
|
inlineprotected |
CHB-based cost.
Definition at line 513 of file job-shop.cpp.
◆ chbmerit()
Trampoline function for CHB-based cost.
Definition at line 518 of file job-shop.cpp.
◆ copy()
|
inlinevirtual |
Copy during cloning.
Definition at line 642 of file job-shop.cpp.
Member Data Documentation
◆ sorder
|
protected |
Step order variables.
Definition at line 483 of file job-shop.cpp.
◆ fst
|
protected |
Record which step is first in order.
Definition at line 485 of file job-shop.cpp.
◆ snd
|
protected |
Record which step is second in order.
Definition at line 487 of file job-shop.cpp.
◆ iafc
|
protected |
AFC information.
Definition at line 489 of file job-shop.cpp.
◆ iaction
|
protected |
Action information.
Definition at line 500 of file job-shop.cpp.
◆ baction
|
protected |
Definition at line 500 of file job-shop.cpp.
◆ ichb
|
protected |
CHB information.
Definition at line 511 of file job-shop.cpp.
◆ bchb
|
protected |
Definition at line 511 of file job-shop.cpp.
◆ rnd
|
protected |
Random number generator for probing and relaxation.
Definition at line 522 of file job-shop.cpp.
The documentation for this class was generated from the following file:
- examples/job-shop.cpp
