frepple::SolverMRP::SolverMRPdata Class Reference
This class is a helper class of the SolverMRP class. More...
#include <solver.h>
Inheritance diagram for frepple::SolverMRP::SolverMRPdata:

Public Member Functions | |
virtual void | commit () |
unsigned short | getLogLevel () const |
virtual size_t | getSize () const |
SolverMRP * | getSolver () const |
virtual const MetaClass & | getType () const |
bool | getVerbose () const |
void | pop () |
void | push (double q=0.0, Date d=Date::infiniteFuture) |
SolverMRPdata (SolverMRP *s=NULL, int c=0, deque< Demand * > *d=NULL) | |
Static Public Member Functions | |
static void | runme (void *args) |
Public Attributes | |
State * | prevstate |
State * | state |
Friends | |
class | SolverMRP |
Detailed Description
This class is a helper class of the SolverMRP class.
It stores the solver state maintained by each solver thread.
- See also:
- SolverMRP
Constructor & Destructor Documentation
Member Function Documentation
void frepple::SolverMRP::SolverMRPdata::commit | ( | ) | [virtual] |
This function runs a single planning thread. Such a thread will loop through the following steps:
- Use the method next_cluster() to find another unplanned cluster.
- Exit the thread if no more cluster is found.
- Sort all demands in the cluster, using the demand_comparison() method.
- Loop through the sorted list of demands and plan each of them. During planning the demands exceptions are caught, and the planning loop will simply move on to the next demand. In this way, an error in a part of the model doesn't ruin the complete plan.
- See also:
- demand_comparison
- next_cluster
Reimplemented from frepple::utils::CommandManager.
Definition at line 79 of file solverplan.cpp.
unsigned short frepple::SolverMRP::SolverMRPdata::getLogLevel | ( | ) | const [inline] |
virtual size_t frepple::SolverMRP::SolverMRPdata::getSize | ( | ) | const [inline, virtual] |
SolverMRP* frepple::SolverMRP::SolverMRPdata::getSolver | ( | ) | const [inline] |
virtual const MetaClass& frepple::SolverMRP::SolverMRPdata::getType | ( | ) | const [inline, virtual] |
bool frepple::SolverMRP::SolverMRPdata::getVerbose | ( | ) | const [inline] |
void frepple::SolverMRP::SolverMRPdata::pop | ( | ) | [inline] |
void frepple::SolverMRP::SolverMRPdata::push | ( | double | q = 0.0 , |
Date | d = Date::infiniteFuture |
||
) | [inline] |
static void frepple::SolverMRP::SolverMRPdata::runme | ( | void * | args | ) | [inline, static] |
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following files:
Documentation generated for frePPLe by
