ReliaSoft Reliability Software, Training and Consulting Services

 
 

See a worldwide directory. Reliability Software

ReliaSoft > Software > RENO > Examples > Example O-2

RENO: Probabilistic Event and Risk Analysis Visual Stochastic Event SimulatorSM
Flowchart and solve the most complex probabilistic problems.

EXAMPLES


Example O-2 - Optimum Newspaper Inventory

Software Used: 
RENO


Problem Statement:

A newsboy can purchase newspapers at 15 cents each and sell them for 25 cents. The demand is normally distributed with a mean of 100 and std of 25. The problem is to determine how many newspapers to buy, given that if he buys too many he will lose money on the ones he does not sell; while if he buys too few he will lose money by not having enough newspapers to sell.

The exact algebraic solution to this problem is trivial.

1-P(Q)=Cost/Sell
             =0.6
             =93.67

RENO Solution:

Define a Random Variable to describe the demand for newspapers.

Random Variable to describe the demand for newspapers

Define a Constant that represents the number of papers that the newspaper boy buys. This will be varied during the simulation to determine the optimum quantity.

Constant to describe the quantity of papers that the boy buys

Define an Equation Variable to calculate the newspaper boy’s supply costs, which is the quantity of papers purchased (represented by the “Quantity” Constant) multiplied by 15 cents.

Equation to calculate the supply costs

Construct the flowchart as follows:

Flowchart to model the problem

Step 1: Use a Block to determine the demand for the newspapers based on the Random Variable called “Demand.”

Block to get the demand from the Random Variable

Step 2: Use a Conditional Block to check whether the amount of papers on hand (represented by the Constant called “Quantity”) is equal to or greater than the demand determined in the previous step. If true, then the quantity of papers sold is equal to the Demand and this number is passed to the TRUE path. If false, then the quantity of papers sold is equal to the Constant called “Quantity” and this number is passed to the FALSE path.

Conditional to check whether supply meets or exceeds the demand

Steps 3a and 3b: Use two Blocks called “Revenue 1” and “Revenue 2” to calculate the amount of revenue from the TRUE and FALSE paths. When supply meets or exceeds demand, this is the demand quantity passed from the Conditional (represented in the equation by the reserved keyword IN) multiplied by the price (25 cents) less the supply cost (represented by the Equation Variable called “Cost”), as shown next. A similar equation is defined for the FALSE path, where the number of papers sold is equal to the Constant called “Quantity.”

Step 4: Use a Result Storage construct to calculate and store the average revenue from all simulations.

Result Storage construct to store the average across simulations

For this example, it is important to note that a single simulation run provides a single answer; thus multiple runs will be needed to arrive at an optimum solution. This can be done using the Sensitivity Analysis page in the Simulation Console.

To first explore the area from 50 to 150, specify 500 simulations (with a seed of 1 for repeatability) on the General page of the Simulation Console then set the Sensitivity Analysis page as shown next.

Sensitivity Analysis page of Simulation Console

RENO will perform 500 simulations per run, with the Quantity set to 50 for the first run, 60 for the second run, and so on up to 150. After the simulation completes, the plot indicates that the optimum value lies somewhere between 80 and 100.

Average Revenue vs. Quantity for Quantity 50 to 150

The next plot shows the results from repeating the simulation with the Quantity varied from 80 to 100 and incremented by 1.

Average Revenue vs. Quantity for Quantity 80 to 100

Given the small number of simulations (500), noise is present. The next step is to increase the number of simulations to 50,000 and focus on the region between 90 and 96, incrementing by 1, as shown next.

Average Revenue vs. Quantity for Quantity 90 to 96

In addition to the manual technique described above, RENO can automatically perform multiple analyses designed to determine the quantity that will maximize revenue. To do this, specify 2,000 simulations on the General page, specify 60 to 120 with an increment of 12 on the Sensitivity Analysis page and configure the Multiple Analyses page as shown next.

Multiple Analysis page of the Simulation Console

The resulting plot of Average Revenue vs. Quantity will include a marker and a line to identify the optimum value, as shown next.

Average Revenue vs. Quantity Plot with Optimum Marked

A RENO project with the solution for this example (called "Newspaper Boy.rnp") is shipped with the software and stored in the Examples\Reliability folder in the application directory (e.g. C:\Program Files\ReliaSoft\RENO\Examples\Optimization\Newspaper Boy.rnp).

Questions?

More Help Options...

RENO Pages

 *RENO Home
  *Overview
  *Features
    *Flyer (*.pdf)
    *Brochure (*.pdf)
  *Case Studies
  *Free Demo
  *Updates
  *Register/Activate

All Software

*Products Home
  *Order/Pricing
  *License Options
  *Maintenance
  *Support
  *Training
  *Testimonials
  *Software Users

Next Seminar

Untitled Page
October 2008
October 15 - 17, 2008: RS 525 Probabilistic Event Analysis in Tucson, Arizona
More Seminars...

 

[Home]   [Software]   [Training]   [Consulting]   [Resources]   [Corporate]   [Search]   [Site Map]   [weibull.com]

ReliaSoft is a registered trademark of ReliaSoft Corporation in the United States and other countries.
Contact: Worldwide Office Numbers

LEGAL [Terms of Use] [Linking Guidelines]
[On-Line Privacy Statement]

Add RSS Feeds

Copyright ©1992-2008 ReliaSoft Corporation, All Rights Reserved

Contact Webmaster