JamesPHoughton edited this page Dec 6, 2014 · 5 revisions

A list of vensim functions is available here

Functionality:

XMILE Vensim pysd meaning
ABS ABS abs
ARCCOS ARCCOS np.arccos
ARCSIN ARCSIN np.arcsin
ARCTAN ARCTAN np.arctan
COS COS np.cos
EXP EXP np.exp
INF INF np.inf
INT INTEGER int
LN LN np.ln
LOG10 LOG10 np.log10
MIN MIN min
MAX MAX max
MODULO np.mod
PI PI np.pi
SIN SIN np.sin
SQRT SQRT np.sqrt
TAN TAN np.tan
EXPRND EXPRND np.random.exponential
LOGNORMAL LOGNORMAL np.random.lognormal
NORMAL np.random.normal
RANDOM NORMAL pysd.functions.bounded_normal
POISSON POISSON np.random.poisson
RANDOM RANDOM UNIFORM np.random.rand
DELAY
DELAY1
DELAY3
DELAYN
FORCST
SMTH1
SMTHN
TREND
PULSE PULSE pysd.functions.pulse
PULSE TRAIN pysd.functions.pulse_train
RAMP RAMP pysd.functions.ramp
STEP STEP pysd.functions.step
DT
STARTTIME
STOPTIME
TIME
INIT
IF_THEN_ELSE IF THEN ELSE pysd.functions.if_then_else
= = ==
<= <= <=
< < <
>= >= >=
> > >
^ ^ **

Arrays, Queues, subscripts, etc. not yet implemented

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.