Starting a Simulation

Hello,

I have (tried) to write my first model in Epic Center. Its a simple model which takes Sales and Expenses from User and Project the Net Profit in a Line Graph (Well! that’s how i want it to be honestly).

I am NOT able to make it start - something wrong with the STEP function thing so here are my two questions

  1. How to call the Step function from a buttom so that it proceed from 2011-2015
  2. How can i show some data in table after taking it from user - simple

Here is my (poor) code

Model Properties

M StartTime = 2011
M EndTime = 2015
M TimeStep = 1
M InitialSteps = 1
M NumberFormat = “#,##0
M TimeFormat = “#0
M ExecuteDecisionImmediately = TRUE

Model Decisions

D Kinverg Revenue=0
D Kinverg Expenses=0

Model Variabales

V Kinverg Net Profit= Kinverg Revenue-Kinverg Expenses

Hi Ali,

(Sorry for the late reply on this).

Your model and page look fine, but incomplete.

The “step” function advances time. Right now your model does not have any variables over time, so the step is applied but is unnecessary. You can reference earlier values in time with the PREVIOUS function, e.g.

V Savings = PREVIOUS(Savings, 100) * 1.02

which will multiple the previous value of savings (starting at 100) by 1.02 each step.

If time is not important (i.e. you want an instantaneous calculator), simply display the the variable “Kinverg Net Profit” on the screen. It will be automatically updated every time you change a input (and click away from the input).

You can show data in a table by using “Result Table”, by including multiple variables individually, or by creating your simulation directly in HTML and using the Flow.js library to bind the HTML to data.

WILL