Questions tagged [vensim]

14 questions
3
votes
0 answers

How to load and access C/C++ header in Python

I am trying to interface with a dynamic simulation software (Vensim) with python. The software has a header file, vendll.h, that I'd like to be able to use. I've been looking through the ctypes module for this but haven't found anything. I'd also…
pbreach
  • 16,049
  • 27
  • 82
  • 120
2
votes
2 answers

Opening Vensim Models on Anylogic

I am having trouble importing a Vensim Model (Version 9.3) on Anylogic. I get the error - "parsing error! com.anylogic.ui.bad: encountered " ","","" at line X , column Y, was expecting: ..." I tried to see if I can download older…
2
votes
1 answer

How do I import a vector of data in Vensim P.L.E. 8.0.4. x64

I am a user of Vensim P.L.E. 8.0.4. x64. This is the Personal Learning Edition, that is freely available for 60 days. I am trying to get familiar with it. I tried to replicate some examples available online, such as these two: first video second…
Marco
  • 53
  • 3
1
vote
0 answers

How to add multiple if then else statements in vensim

I have this logic in vensim that goes, If result<150, 1,2 if result>=150 :AND: <200, 3, 4 If result > 200, 5, 6 What I want is to make them nested if in vensim, but I do not know how. I already tried If then else (result<150, 1, If then else…
Markk
  • 25
  • 5
1
vote
1 answer

IF THEN statement in Vensim

I would like to use these If Then statements in Vensim. Vensim does just have an if then else function. I've tried converting it, but I haven't succeeded. Thanks for the help! IF THEN("CO2-gehalte" >= 120, 1) IF THEN("CO2-gehalte" < 105, 0)
1
vote
1 answer

different time steps in Vensim do not have the same result, how can this be solved?

I am making a simple model in Vensim. the model consists of a stock and an out-flow variable: stock: equations = INTEG (-"out-flow"), initial value: 2.5 out-flow: equations = IF THEN ELSE( stock>0, MIN(stock, 1), 0) simulation runs for 5 years…
ehsun
  • 137
  • 9
1
vote
3 answers

VENSIM TREND Function in system dynamics

I am trying to understand VENSIM functions like TREND in System Dynamics. Any suggestions? I have tried reading up a few papers but not fully comprehending what i am reading
user5983006
  • 129
  • 1
  • 8
0
votes
1 answer

How can I set the Emscripten path in Vensim

I am trying to create a webassembly out of an MDL file using Vensim. According to Vensim official guide, if I click on Tools->Options the following modal should pop up: In this modal there is a label with which I can set the emscripten path.…
nix86
  • 2,837
  • 11
  • 36
  • 69
0
votes
1 answer

How to import Vensim model to Anylogic PLE?

I have encountered "parsing error! com.anylogic.ui.bad: encountered " ","","" at column X, row Y, was expecting: ..." The Vensim model is in MDL format and consists of three simple formulas, however, the importer doesn't work. How can I fix the…
lizi
  • 1
0
votes
0 answers

Function for regaining park capacity for visitors?

I am getting used to Vensim for Modelling System Dynamics. To train, I am busy with a System Dynamics of Park Visitors. Where I have modelling the following Stock and Flow Diagram: For the equation of 'Max Capacity' I have defined it as: max…
0
votes
1 answer

Integrating vensim into anylogic but coming up with opreator error

enter image description hereI am new to anylogic and java. When integrating my system dynamics model from vensim I keep getting an operator error on one of my logic variables that sums up other variables and then tests whether a threshold has been…
Ashton
  • 27
  • 2
0
votes
2 answers

Understanding Parsing Error when reading model file into PySD

I am receiving the following error message when I try to read a Vensim model file (.mdl) using Python's PySD package. My code is: import pysd import os os.chdir('path/to/model_file') model = pysd.read_vensim('my_model.mdl') The Error I receive…
Cortney
  • 1
  • 1
-1
votes
1 answer

Delay functions in Anylogic System Dynamics

What function in AnyLogic-System Dynamics is equivalent to the Delay3 function in Vensim? The Delay3 function in Vensim is used for material delay (e.g. when goods are delayed by 3 days). The syntax in Vensim is: Delay3(input, delayTime). I tried…
molamola
  • 11
  • 1
-1
votes
1 answer

pysd library ParseError

I'm using a library called pysd to translate vensim files to Python, but when I try to do it (library functions) I get a parse error but don't understand what it means. This is my log. ParseError Traceback (most…
Esteban
  • 11
  • 3