Generated on Tue Feb 11 2025 17:33:26 for Gecode by doxygen 1.12.0

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< BaseSpace >
 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.
 

Protected Attributes

const JobShopOptionsopt
 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< BaseSpace >
static std::ostream & select_ostream (const char *sn, std::ofstream &ofs)
 Choose output stream according to sn.
 
template<class Script , template< class > class Engine, class Options >
static void run (const Options &opt, Script *s=NULL)
 

Detailed Description

Example: Job Shop Scheduling

Definition at line 268 of file job-shop.cpp.

Constructor & Destructor Documentation

◆ JobShopBase() [1/2]

JobShopBase::JobShopBase ( const JobShopOptions & o)
inline

Actual model.

Definition at line 280 of file job-shop.cpp.

◆ JobShopBase() [2/2]

JobShopBase::JobShopBase ( JobShopBase & s)
inline

Constructor for cloning s.

Definition at line 324 of file job-shop.cpp.

Member Function Documentation

◆ nooverload()

void JobShopBase::nooverload ( void )
inline

Do not overload machines.

Definition at line 297 of file job-shop.cpp.

◆ cost()

virtual IntVar JobShopBase::cost ( void ) const
inlinevirtual

Return cost.

Definition at line 320 of file job-shop.cpp.

◆ print()

virtual void JobShopBase::print ( std::ostream & os) const
inlinevirtual

Print solution.

Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.

Definition at line 331 of file job-shop.cpp.

Member Data Documentation

◆ opt

const JobShopOptions& JobShopBase::opt
protected

Options.

Definition at line 271 of file job-shop.cpp.

◆ spec

const Spec JobShopBase::spec
protected

Specification.

Definition at line 273 of file job-shop.cpp.

◆ start

IntVarArray JobShopBase::start
protected

Start times for each step in a job.

Definition at line 275 of file job-shop.cpp.

◆ makespan

IntVar JobShopBase::makespan
protected

Makespan.

Definition at line 277 of file job-shop.cpp.


The documentation for this class was generated from the following file: