<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>Frepple / Test Demand Policy </title> <link rel='stylesheet' href='../styles.css' type='text/css' /> <!--PageHeaderFmt--> </head> <body> <div id="container"> <div id="menubar"> <div id="logo" align="center"> <br/><img src='../frepple.bmp' alt="frepple" /><br/> <a href='http://www.frepple.com/'> <strong>a Free<br/>Production Planning<br/>Library</strong> </a></div> <div id="menu"> <br/> <h3><a href='../Main/HomePage.html'>Main</a></h3> <h3><a href='../UI/Main.html'>User Manual</a></h3> <h3><a href='../Tutorial/Main.html'>Tutorial</a></h3> <h3><a href='Main.html'>Reference Manual</a></h3> <h3><a href='../Main/FAQ.html'>FAQ</a></h3> <h3><a href='../reference/index.html'>C++ API</a></h3> <br/><div> </div> </div> </div> <div id="content"> <br/> <!--PageText--> <div id='wikitext'> <p><a class='wikilink' href='../Main/HomePage.html'>Main</a> > <span class='wikitrail'><a class='wikilink' href='Main.html'>Reference Manual</a> > <a class='wikilink' href='Test.html'>Unit tests</a> > <a class='selflink' href='TestDemandPolicy.html'>Test Demand Policy</a></span> </p> <p class='vspace'>The test verifies the demand policies. </p> <p class='vspace'>The supply situation is such that half of the demand can be met in time, and half of it late: </p><ul><li>Demand: 20 on due date 5 Jan </li><li>Supply: 10 available as inventory, and 10 arriving on 10 Jan </li></ul><p class='vspace'>The demand policy controls how the demand is allowed to be planned in such a constrained situation: </p><ul><li>Case A:<br /> The default policy is to allow demands to be planned without any limits on the timing and quantity of the deliveries.<br /> Result: Delivery of 10 units on 5 Jan and a second delivery on 10 Jan. </li><li>Case B:<br /> No lateness is allowed.<br /> Result: A delivery of 10 units on 5 Jan. </li><li>Case C:<br /> Lateness is allowed, but we only accept a delivery for the full requested quantity.<br /> Result: A delivery of 20 units on 10 Jan. </li><li>Case D:<br /> No lateness is allowed, and we also only accept a delivery for the full requested quantity.<br /> Result: No delivery planned. </li><li>Case E:<br /> The maximum allowed delivery date is jan 7, without any restriction on the delivered quantity.<br /> Result: A delivery of 10 units on 5 Jan </li><li>Case F:<br /> The minimum quantity shipped is 11, without any restriction on the delivery date.<br /> In this case the onhand on jan 5 is increased to 15.<br /> Result: A delivery of 20 units on 10 Jan </li></ul> </div> <!--PageFooterFmt--> <!--HTMLFooter--> </div></div> </body> </html>