excel solver
optimization
simulation
solver, Monte Carlo simulation

   solver.com

Frontline Systems, Inc.  

quadratic programming, portfolio optimization, quadratic solver 
Developers of Your Spreadsheet's Solver  
robust optimization, stochastic programming, simulation optimization
   

Simulation Model - Introduction


simulation, risk analysis, Excel

 
Home
Register
What's New
Solver Tutorial
Solver Technology
Select a Product
Excel Users
MATLAB Users
Developers
Government Users
Academic Users
Press/Analysts
Privacy Policy
 

 

 
A simulation model is a mathematical model that calculates the impact of uncertain inputs and decisions we make on outcomes that we care about, such as profit and loss, investment returns, environmental consequences, and the like.  Such a model can be created by writing code in a programming language, statements in a simulation modeling language, or formulas in a Microsoft Excel spreadsheet.  Regardless of how it is expressed, a simulation model will include:
 
bulletModel inputs that are uncertain numbers -- we'll call these uncertain variables
bulletIntermediate calculations as required
bulletModel outputs that depend on the inputs -- we'll call these uncertain functions

It's essential to realize that model outputs that depend on uncertain inputs are uncertain themselves -- hence we talk about uncertain variables and uncertain functions.  When we perform a simulation with this model, we will test many different numeric values for the uncertain variables, and we'll obtain many different numeric values for the uncertain functions.  We'll use statistics to analyze and summarize all the values for the uncertain functions (and, if we wish, the uncertain variables).

bullet Creating Models in Excel or Custom Programs
bullet Choosing Samples for Uncertain Variables

Creating Models in Excel or Custom Programs

An Excel spreadsheet can be a simple, yet powerful tool for creating your model -- especially when paired with Monte Carlo simulation software such as Risk Solver.  If your model is written in a programming language, Monte Carlo simulation toolkits like the one in Frontline's Solver Platform SDK provide powerful aids.

An example model in Excel might look like this, where cell B6 contains a formula =PsiTriangular(E9,G9,F9) to sample values for the uncertain variable Unit Cost, and cell B10 contains a formula =PsiMean(B9) to obtain the mean value of Net Profit across all trials of the simulation.

risk analysis model in Excel

A portion of an example model in the C# programming language might look like this, where the array Var[] receives sample values for the two uncertain variables X and Y, and the uncertain function values are computed and assigned to the Problem's FcnUncertain object Value property:

risk analysis model in C#

Choosing Samples for Uncertain Variables

We must also choose what random sample values to use for the uncertain variables.  During a simulation, a new sample value will be drawn on each trial.  In the simplest case, we might generate random numbers between 0 and 1, and use these as sample values.  But in most cases, the range of values, and chance that different values in the range will be drawn on each trial, must be tailored to the uncertain variable.  To do this, we normally choose a probability distribution and appropriate parameters for the uncertain variable.

This is a key step in building a simulation model.  To learn more about it, consult Probability Distributions for Simulation.  We can choose:
 
bulletAn analytic distribution, such as a Uniform or Normal distribution
bulletA custom distribution, where we specify its form in detail
bulletA distribution fitted to past data on the behavior of the variable
bulletA smaller data set that is resampled for values on each simulation trial
bulletA larger data set, called a Stochastic Library, that supplies all of the samples
bulletA Certified Distribution that has been prepared and "vetted" by an expert

Frontline's Risk Solver supports all of these options for obtaining sample values for the uncertain variables in a simulation model.  

Probability Distributions

Simulation Analysis

Simulation Optimization

Risk Analysis Tutorial

Back to Simulation Introduction

To Learn More:
For instant access to example models, full-text User Guides, and to download free 15-day trial versions of our software products whenever you're ready, you can register now.
User Type
Email Address
Name First Last
Company University
Phone

Trial version passwords are sent to the above email address: See Privacy Policy.
Our Premium Solver Platform works with existing Excel Solver models, solves much larger problems up to hundreds of times faster, and solves new kinds of problems via Evolutionary Solver.  Solver Engines plug into the Premium Solver Platform.
   
Solver Platform SDK makes it easy to solve any type or size of optimization problem in your Visual Basic, VB.NET, C/C++, C#, Java, or MATLAB program. And it's easy to deploy your application with our flexible licensing for software vendors and corporate developers.
   
spreadsheet solver
scarce resources