M o d e l e a s y +  
 

Performance For the Future

 
 

 

   

Model Processing Language Examples

Example of the MPL BUILDMODEL and SIMULATE Commands.

BUILDMODEL Syntax

Simulations in Modeleasy+ are accomplished by using two basic commands: BUILDMODEL and SIMULATE. The BUILDMODEL command is used to convert a model written in MDL into an executable module which is then used by the SIMULATE command to perform the actual simulation. By first converting the model to an executable form, the execution speed of the simulation is maximized, greatly increasing the power of the simulation to the user.

The general syntax of the BUILDMODEL command is:

     BUILDMODEL ( model_name [: optional_keywords] )

where the "optional_keywords" can be used to prepare the model for stochastic simulation, vector simulation, or to insert add-factors into the simulation (without having to edit the model maually). The BUILDMODEL command need only be used once for each simulation since the executable which is built can be used over and over.

 

SIMULATE Syntax

The general syntax of the SIMULATE command is:

     SIMULATE ( model_name [: optional_keywords] )

where the "optional_keywords" can be used to perform the simulation as directed by the user. The default algorithm is the Gauss-Seidel algorithm, although Newton-Raphson or Jacobi methods may be specified.

 

Klein1 Model Simulation

For example, if the Klein1 model is to be simulated using the default Gauss-Seidel algorithm, then the simple command sequence would be:

     BUILDMODEL ( klein1 )

     SIMULATE ( klein1 )

and  the simulation would be done. To simulate using the Newton-Raphson algorithm, the command

     SIMULATE ( klein1 : newton )

would be used without having to perform the BUILDMODEL step again.

 

Next Example

Previous Example

Top

 

Ready to Order?  Click here
Not able to find what you're looking for?  Try our sitemap
SAMPLE SESSION | Free Trial | VERSIONS | Downloads
Problem? | Speakeasy | Utilities | Search

R E A C H   U S

Phone  Fax  Email
+1 352 688 7622   +1 352 688 7610  info@modeleasy.com

For questions or comments on this Website contact

For sales information, send email to

For technical support, send email to