This class models a buffer that is replenish by an external supplier using a reorder-point policy. More...

#include <model.h>

Inheritance diagram for frepple::BufferProcure:

List of all members.

Public Member Functions

 BufferProcure (const string &c)
virtual void endElement (XMLInput &, const Attribute &, const DataElement &)
virtual PyObject * getattro (const Attribute &)
TimePeriod getFence () const
TimePeriod getLeadtime () const
TimePeriod getMaximumInterval () const
double getMaximumInventory () const
TimePeriod getMinimumInterval () const
double getMinimumInventory () const
OperationgetOperation () const
virtual size_t getSize () const
double getSizeMaximum () const
double getSizeMinimum () const
double getSizeMultiple () const
virtual const MetaClassgetType () const
virtual int setattro (const Attribute &, const PythonObject &)
void setFence (TimePeriod p)
void setLeadtime (TimePeriod p)
void setMaximumInterval (TimePeriod p)
void setMaximumInventory (double f)
void setMinimumInterval (TimePeriod p)
void setMinimumInventory (double f)
void setSizeMaximum (double f)
void setSizeMinimum (double f)
void setSizeMultiple (double f)
virtual void solve (Solver &s, void *v=NULL) const
virtual void writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const
- Public Member Functions inherited from frepple::Buffer
virtual void beginElement (XMLInput &, const Attribute &)
 Buffer (const string &str)
void deleteOperationPlans (bool deleteLockedOpplans=false)
size_t extrasize () const
FlowfindFlow (const Operation *o, Date d) const
virtual void followPegging (PeggingIterator &, FlowPlan *, short, double, double)
double getCarryingCost () const
const flowplanlistgetFlowPlans () const
flowplanlistgetFlowPlans ()
const flowlistgetFlows () const
bool getHidden () const
ItemgetItem () const
LocationgetLocation () const
double getMaximum () const
CalendarDoublegetMaximumCalendar () const
double getMinimum () const
CalendarDoublegetMinimumCalendar () const
double getOnHand (Date d=Date::infinitePast) const
double getOnHand (Date, Date, bool min=true) const
OperationgetProducingOperation () const
void setCarryingCost (const double c)
void setHidden (bool b)
void setItem (Item *i)
void setLocation (Location *i)
void setMaximum (double)
void setMaximumCalendar (CalendarDouble *)
void setMinimum (double)
void setMinimumCalendar (CalendarDouble *)
void setOnHand (double f)
void setProducingOperation (Operation *o)
virtual void updateProblems ()
virtual ~Buffer ()
- Public Member Functions inherited from frepple::utils::HasHierarchy< Buffer >
memberIterator beginMember () const
unsigned short getHierarchyLevel () const
BuffergetOwner () const
 HasHierarchy (const string &n)
bool hasOwner () const
bool isGroup () const
void setOwner (Buffer *f)
 ~HasHierarchy ()
- Public Member Functions inherited from frepple::utils::HasName< Buffer >
int compare (const PyObject *other) const
 HasName (const string &n)
 HasName (const char *n)
void setName (const string &newname)
virtual PyObject * str () const
 ~HasName ()
- Public Member Functions inherited from frepple::utils::Tree::TreeNode
TreeNodedecrement () const
const string & getName () const
TreeNodeincrement () const
bool operator< (const TreeNode &o)
 TreeNode (const string &n)
virtual ~TreeNode ()
- Public Member Functions inherited from frepple::utils::Object
 Object ()
virtual ~Object ()
- Public Member Functions inherited from frepple::utils::PythonExtensionBase
virtual PyObject * call (const PythonObject &args, const PythonObject &kwds)
Py_ssize_t getReferenceCount () const
void initType (const MetaClass *t)
void initType (PyTypeObject *t)
virtual PyObject * iternext ()
 PythonExtensionBase ()
void resetReferenceCount ()
virtual ~PythonExtensionBase ()
- Public Member Functions inherited from frepple::HasLevel
unsigned short getCluster () const
short getLevel () const
- Public Member Functions inherited from frepple::Plannable
bool getChanged () const
bool getDetectProblems () const
PlannablegetEntity () const
 Plannable ()
void setChanged (bool b=true)
void setDetectProblems (bool b)
- Public Member Functions inherited from frepple::HasProblems
 HasProblems ()
virtual ~HasProblems ()
- Public Member Functions inherited from frepple::Solvable
virtual ~Solvable ()
- Public Member Functions inherited from frepple::utils::HasDescription
string getCategory () const
string getDescription () const
string getSubCategory () const
void setCategory (const string &f)
void setDescription (const string &f)
void setSubCategory (const string &f)

Static Public Member Functions

static int initialize ()

Static Public Attributes

static const MetaClassmetadata
- Static Public Attributes inherited from frepple::Buffer

Additional Inherited Members

- Public Types inherited from frepple::Buffer
typedef Association< Operation,
Buffer, Flow >::ListB 
flowlist
typedef TimeLine< FlowPlanflowplanlist

Detailed Description

This class models a buffer that is replenish by an external supplier using a reorder-point policy.

It represents a material buffer where a replenishment is triggered whenever the inventory drops below the minimum level. The buffer is then replenished to the maximum inventory level.
A leadtime is taken into account for the replenishments.
The following parameters control this replenishment:

  • MinimumInventory:
    Inventory level triggering a new replenishment.
    The actual inventory can drop below this value.
  • MaximumInventory:
    Inventory level to which we try to replenish.
    The actual inventory can exceed this value.
  • Leadtime:
    Time taken between placing the purchase order with the supplier and the delivery of the material.

Using the additional parameters described below the replenishments can be controlled in more detail. The resulting inventory profile can end up to be completely different from the classical saw-tooth pattern!

The timing of the replenishments can be constrained by the following parameters:

  • MinimumInterval:
    Minimum time between replenishments.
    The order quantity will be increased such that it covers at least the demand in the minimum interval period. The actual inventory can exceed the target set by the MinimumInventory parameter.
  • MaximumInterval:
    Maximum time between replenishments.
    The order quantity will replenish to an inventory value less than the maximum when this maximum interval is reached. When the minimum and maximum interval are equal we basically define a fixed schedule replenishment policy.

The quantity of the replenishments can be constrained by the following parameters:

  • MinimumQuantity:
    Minimum quantity for a replenishment.
    This parameter can cause the actual inventory to exceed the target set by the MinimumInventory parameter.
  • MaximumQuantity:
    Maximum quantity for a replenishment.
    This parameter can cause the maximum inventory target never to be reached.
  • MultipleQuantity:
    All replenishments are rounded up to a multiple of this value. When the minimum and maximum quantity are equal we basically define a fixed quantity replenishment policy.

Definition at line 2972 of file model.h.


Constructor & Destructor Documentation

frepple::BufferProcure::BufferProcure ( const string &  c)
inlineexplicit

Constructor.

Definition at line 2986 of file model.h.


Member Function Documentation

void frepple::BufferProcure::endElement ( XMLInput pIn,
const Attribute pAttr,
const DataElement pElement 
)
virtual

Reimplemented from frepple::Buffer.

Definition at line 697 of file buffer.cpp.

PyObject * frepple::BufferProcure::getattro ( const Attribute attr)
virtual

Default getattro method.
Subclasses are expected to implement an override if the type supports gettattro.

Reimplemented from frepple::Buffer.

Definition at line 907 of file buffer.cpp.

TimePeriod frepple::BufferProcure::getFence ( ) const
inline

Return the release time fence.

Definition at line 3004 of file model.h.

TimePeriod frepple::BufferProcure::getLeadtime ( ) const
inline

Return the purchasing leadtime.

Definition at line 2992 of file model.h.

TimePeriod frepple::BufferProcure::getMaximumInterval ( ) const
inline

Return the maximum time interval between sytem-generated replenishment operations.

Definition at line 3088 of file model.h.

double frepple::BufferProcure::getMaximumInventory ( ) const
inline

Return the maximum inventory level to which we wish to replenish.

Definition at line 3044 of file model.h.

TimePeriod frepple::BufferProcure::getMinimumInterval ( ) const
inline

Return the minimum interval between purchasing operations.
This parameter doesn't control the timing of the first purchasing operation, but only to the subsequent ones.

Definition at line 3073 of file model.h.

double frepple::BufferProcure::getMinimumInventory ( ) const
inline

Return the inventory level that will trigger creation of a purchasing.

Definition at line 3016 of file model.h.

Operation * frepple::BufferProcure::getOperation ( ) const

Returns the operation that is automatically created to represent the procurements.

Definition at line 752 of file buffer.cpp.

virtual size_t frepple::BufferProcure::getSize ( ) const
inlinevirtual

Return the memory size of the object in bytes.

Implements frepple::utils::Object.

Definition at line 2979 of file model.h.

double frepple::BufferProcure::getSizeMaximum ( ) const
inline

Return the maximum quantity of a purchasing operation.

Definition at line 3115 of file model.h.

double frepple::BufferProcure::getSizeMinimum ( ) const
inline

Return the minimum quantity of a purchasing operation.

Definition at line 3101 of file model.h.

double frepple::BufferProcure::getSizeMultiple ( ) const
inline

Return the multiple quantity of a purchasing operation.

Definition at line 3129 of file model.h.

virtual const MetaClass& frepple::BufferProcure::getType ( ) const
inlinevirtual

This returns the type information on the object, a bit similar to the standard type_info information.

Reimplemented from frepple::Buffer.

Definition at line 2978 of file model.h.

int frepple::BufferProcure::initialize ( )
static

Initialize the class.

Reimplemented from frepple::Buffer.

Definition at line 79 of file buffer.cpp.

int frepple::BufferProcure::setattro ( const Attribute attr,
const PythonObject field 
)
virtual

Default setattro method.
Subclasses are expected to implement an override if the type supports settattro.

Reimplemented from frepple::Buffer.

Definition at line 931 of file buffer.cpp.

void frepple::BufferProcure::setFence ( TimePeriod  p)
inline

Update the release time fence.

Definition at line 3007 of file model.h.

void frepple::BufferProcure::setLeadtime ( TimePeriod  p)
inline

Update the procurement leadtime.

Definition at line 2995 of file model.h.

void frepple::BufferProcure::setMaximumInterval ( TimePeriod  p)
inline

Update the minimum time between replenishments.

Definition at line 3091 of file model.h.

void frepple::BufferProcure::setMaximumInventory ( double  f)
inline

Update the maximum inventory level to which we plan to replenish.
This is not a hard limit - other parameters can make that the actual inventory either never reaches this value or always exceeds it.

Definition at line 3051 of file model.h.

void frepple::BufferProcure::setMinimumInterval ( TimePeriod  p)
inline

Update the minimum time between replenishments.

Definition at line 3076 of file model.h.

void frepple::BufferProcure::setMinimumInventory ( double  f)
inline

Update the inventory level that will trigger the creation of a replenishment.
Because of the replenishment leadtime, the actual inventory will drop below this value. It is up to the user to set an appropriate minimum value.

Definition at line 3025 of file model.h.

void frepple::BufferProcure::setSizeMaximum ( double  f)
inline

Update the maximum replenishment quantity.

Definition at line 3118 of file model.h.

void frepple::BufferProcure::setSizeMinimum ( double  f)
inline

Update the minimum replenishment quantity.

Definition at line 3104 of file model.h.

void frepple::BufferProcure::setSizeMultiple ( double  f)
inline

Update the multiple quantity.

Definition at line 3132 of file model.h.

virtual void frepple::BufferProcure::solve ( Solver s,
void *  v = NULL 
) const
inlinevirtual

This method is called by solver classes. The implementation of this class simply calls the solve method on the solver class. Using the polymorphism the solver can implement seperate methods for different plannable subclasses.

Reimplemented from frepple::Buffer.

Definition at line 2975 of file model.h.

void frepple::BufferProcure::writeElement ( XMLOutput o,
const Keyword tag,
mode  m = DEFAULT 
) const
virtual

Reimplemented from frepple::Buffer.

Definition at line 722 of file buffer.cpp.


Member Data Documentation

const MetaClass * frepple::BufferProcure::metadata
static

Reimplemented from frepple::Buffer.

Definition at line 2989 of file model.h.


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