Search found 29 matches
- Mon Jul 29, 2019 6:41 pm
- Forum: Vensim
- Topic: How to run sensitivity simulations with Vensim DLL
- Replies: 3
- Views: 2156
Re: How to run sensitivity simulations with Vensim DLL
Thanks for the tip! You are right - from running the CMD file I saw that the .vsc and .lst files weren't being found so I included the full paths and replaced double back slashes with forward slashes. Everything seems to be working now.
- Mon Jul 29, 2019 5:35 pm
- Forum: Vensim
- Topic: How to run sensitivity simulations with Vensim DLL
- Replies: 3
- Views: 2156
How to run sensitivity simulations with Vensim DLL
I'm trying to run a series of sensitivity simulations with the Vensim DLL. I have defined sensitivty control files (.vsc) and save files (.lst) for each one. I am using the "SIMULATE>SENSITIVITY|vscfile" command to first set the control file to be used for the simulation, and then the &quo...
- Mon Apr 08, 2019 8:57 pm
- Forum: Vensim
- Topic: Varformat error 1071225242
- Replies: 12
- Views: 5117
Re: Varformat error 1071225242
Awesome! I didn't expect the model to run yet anyhow. It was connected using a C-extension to a CGE based energy-economy model and ran into a lot of issues because of it. We're currently replacing that model with another one that I think you would be familiar with.
Thanks again,
Patrick
Thanks again,
Patrick
- Mon Apr 08, 2019 7:36 pm
- Forum: Vensim
- Topic: Varformat error 1071225242
- Replies: 12
- Views: 5117
Re: Varformat error 1071225242
Yes it was runnable. I didn't mention this part but the equations weren't modified by Vensim after changing the subscript names. I had to open the .mdl file in a text editor to find and replace the subscript element names using a regex. The BIOGEOCHEM model runs from start to finish (had to make a s...
- Mon Apr 08, 2019 5:49 pm
- Forum: Vensim
- Topic: Varformat error 1071225242
- Replies: 12
- Views: 5117
Re: Varformat error 1071225242
After renaming the subscripts i, j, and k to source, sink, and element (as well as their subscript elements), I pasted BIOGEOCHEM.mdl into Global_model.mdl (attached). After checking the subscript control window there doesn't seem to be any conflicts and the subscripts from the pasted model seem to ...
- Mon Apr 08, 2019 4:21 pm
- Forum: Vensim
- Topic: Varformat error 1071225242
- Replies: 12
- Views: 5117
Re: Varformat error 1071225242
That is actually very helpful seeing these errors. I tried doing this (File>Edit file...) but Vensim crashes before I can get there. My guess is that I have to add in the subscripts that were used in the previous model before pasting it in? The attachment "BIOGEOCHEM.mdl" is the one that I...
- Mon Apr 08, 2019 3:39 pm
- Forum: Vensim
- Topic: Varformat error 1071225242
- Replies: 12
- Views: 5117
Re: Varformat error 1071225242
Here is version information if needed as well:
Windows-10-10.0.17763-SP0
Vensim DSS for Windows Version 6.4c (x32)
Windows-10-10.0.17763-SP0
Vensim DSS for Windows Version 6.4c (x32)
- Mon Apr 08, 2019 3:13 pm
- Forum: Vensim
- Topic: Varformat error 1071225242
- Replies: 12
- Views: 5117
Varformat error 1071225242
I get this error when I try to open a particular model with Vensim. This only started happening after I copy and pasted in components from a separate model that I was working on in a different file. After trying to open the model and getting the error a few times in a row, I opened Vensim first and ...
- Mon Feb 26, 2018 7:51 pm
- Forum: Vensim
- Topic: Memory allocation error with larger lookup tables
- Replies: 1
- Views: 1571
Memory allocation error with larger lookup tables
I am trying to upload some time-dependent exogenous data into a model that consists of ~13k values. I started by creating an Auxilliary variable with sub-type of Lookup. When I press "As Graph" and import the values copied from a spreadsheet it appears they are uploaded successfully. Howev...
- Wed Jul 05, 2017 6:10 pm
- Forum: Vensim
- Topic: Vensim exits when trying to publish model
- Replies: 1
- Views: 1350
Vensim exits when trying to publish model
For some reason, when I try to publish a model by using File>Publish with the default settings (readable by all, settings included, and no additional files). The program exits and I am not able to publish the model. Do you have an idea of what the problem might be and/or how it can be resolved? I am...
- Sat Jan 07, 2017 3:48 pm
- Forum: Vensim
- Topic: Obtain current state of intermediate steps in Dynamic functions
- Replies: 2
- Views: 2269
Obtain current state of intermediate steps in Dynamic functions
How can I look at the intermediate states of Dynamic functions? For example if I have a DELAY_FIXED variable with a delay time of 10, how can the state of the 10 additional stocks used to represent the delay behaviour be obtained? I would like to view this with the "Table" tool if possible...
- Thu Sep 08, 2016 2:38 pm
- Forum: Vensim
- Topic: How to continue from previous simulation?
- Replies: 2
- Views: 1942
Re: How to continue from previous simulation?
Sure thing - here is the mdl and vpm files for the model I was using to test.
- Tue Sep 06, 2016 6:13 pm
- Forum: Vensim
- Topic: How to continue from previous simulation?
- Replies: 2
- Views: 1942
How to continue from previous simulation?
I have been using vensim_get_state and vensim_set_state to resume a simulation from a previous run but I get the same output + 1 time step rather than one that is continued onwards from the state at the end of the first run. Here is a short example (attached) written using the DLL in Python. What en...
- Mon Aug 29, 2016 3:58 am
- Forum: Vensim
- Topic: Can't write to the file run1.vdf (busy of insufficient permissions using Vensim DLL
- Replies: 1
- Views: 1983
Can't write to the file run1.vdf (busy of insufficient permissions using Vensim DLL
Every now and again I get the error in the subject headline when I am running a model with the Vensim DLL multiple time while keeping the same run name. Something like: vensim_command('SPECIAL>LOADMODEL|model.vpm') vnesim_command('SIMULATE>RUNNAME|Run1') vensim_command('MENU|RUN|O') vensim_get_data(...
- Wed Aug 17, 2016 9:34 pm
- Forum: Vensim
- Topic: "Not able to analyze model" in status bar: can't switch model views
- Replies: 8
- Views: 4251
Re: "Not able to analyze model" in status bar: can't switch model views
Actually, somehow it's working now! I think I just had to restart Vensim another time manually. Thanks for all the help!
- Wed Aug 17, 2016 9:27 pm
- Forum: Vensim
- Topic: "Not able to analyze model" in status bar: can't switch model views
- Replies: 8
- Views: 4251
Re: "Not able to analyze model" in status bar: can't switch model views
I tried both option 1 and 2 and have the same error as in the original post, "Not able to analyze model" in the status bar. Is there any other alternative?
- Wed Aug 17, 2016 6:10 pm
- Forum: Vensim
- Topic: "Not able to analyze model" in status bar: can't switch model views
- Replies: 8
- Views: 4251
Re: "Not able to analyze model" in status bar: can't switch model views
I forget to mention that it does seem it would need to be re-compiled. I tried specifying dll in Tools->Options->Startup->External function library but it says "The external functions in ... cannot be loaded. Do you want to try again next time?". Clicked "Yes", Vensim restarts an...
- Wed Aug 17, 2016 6:04 pm
- Forum: Vensim
- Topic: "Not able to analyze model" in status bar: can't switch model views
- Replies: 8
- Views: 4251
Re: "Not able to analyze model" in status bar: can't switch model views
So it turns out the external function library is using some other proprietary libraries that I can't get my hands on. Even if I did want to try and re-compile it is not an option. All I want to do is be able to see the model sketch! I'm planning on re-implementing the part that is used in the extern...
- Tue Aug 09, 2016 6:53 am
- Forum: Vensim
- Topic: "Not able to analyze model" in status bar: can't switch model views
- Replies: 8
- Views: 4251
Re: "Not able to analyze model" in status bar: can't switch model views
Good catch. I didn't realize the model was using external functions until now. I think the DLL containing the external functions was put together with files from an older version of Vensim. Does that mean it will need to be recompiled?
Thanks for the prompt reply.
Thanks for the prompt reply.
- Tue Aug 09, 2016 12:20 am
- Forum: Vensim
- Topic: "Not able to analyze model" in status bar: can't switch model views
- Replies: 8
- Views: 4251
"Not able to analyze model" in status bar: can't switch model views
I'm trying to open a model (created in 2011 if that helps) and the first thing that comes up is the text inside the mdl. So I go to View->As Sketch and then I get a dialog that pops up with "Syntax Error." which points to this statement: vensimOutput= WRITE(Tau1,Tau2,Tau3,b1 0,b2,b3,Pfz1,P...
- Tue Aug 09, 2016 12:04 am
- Forum: Vensim
- Topic: How can I use Vensim DLL in Python, Linux?
- Replies: 8
- Views: 7143
Re: How can I use Vensim DLL in Python, Linux?
I've done this on Windows. Not sure if it will work the same way on Linux but since you're using wine with the windows dll (I think?) then maybe take a look here: https://github.com/pbreach/venpy
- Sun Aug 07, 2016 12:29 am
- Forum: Vensim
- Topic: Loading two Vensim models at once with the DLL in separate threads
- Replies: 2
- Views: 2268
Re: Loading two Vensim models at once with the DLL in separate threads
i guess I'll get to work on my hacky solution...
- Sat Aug 06, 2016 8:06 pm
- Forum: Vensim
- Topic: Loading two Vensim models at once with the DLL in separate threads
- Replies: 2
- Views: 2268
Loading two Vensim models at once with the DLL in separate threads
I stumbled upon this link in the Vensim Help Docs: https://www.vensim.com/documentation/index.html?dll_venapp_and_command_changes.htm . I'm interesting in the following statement: DLL Contexts The Vensim DLL is now available in a configuration that allows for multiple context definitions. This is ve...
- Fri Apr 22, 2016 2:55 am
- Forum: Vensim
- Topic: Clarification of the purpose of vensim_continue_simulation
- Replies: 3
- Views: 2557
Re: Clarification of the purpose of vensim_continue_simulati
Thank you for your prompt reply. The code is working now! One last question though. Does the value set to GAMEINTERVAL represent the number of time steps or the length of time between giving control back to the user? I am thinking of the case where the TIME STEP != 1. I've been looking through the V...
- Wed Apr 20, 2016 4:50 am
- Forum: Vensim
- Topic: Clarification of the purpose of vensim_continue_simulation
- Replies: 3
- Views: 2557
Clarification of the purpose of vensim_continue_simulation
I'm trying to use a combination of vensim_start_simulation, vensim_continue_simulation, vensim_finish_simulation if a loop for which the simulation is carried out bit by bit returning control to the user after a given number of time steps. The pseudo-code looks something like this: for i in 1:step:1...