Search found 45 matches
- Tue Feb 02, 2021 12:21 am
- Forum: Vensim
- Topic: Removable drive issue
- Replies: 5
- Views: 4634
Re: Removable drive issue
Well, there is this 8” square paper envelope with shiny black plastic showing through some holes. 
- Mon Feb 01, 2021 10:48 pm
- Forum: Vensim
- Topic: Removable drive issue
- Replies: 5
- Views: 4634
Removable drive issue
I'm running DSS x64 version 8.2.0, and i'm having a new problem. My company has us keep all our work on share drives. That's been true as long as I've been here (years), and Vensim has been happy enough. Today I tried to create and run a new model. i could save it to the share drive, but, when i try...
- Mon Dec 31, 2018 8:04 pm
- Forum: Vensim
- Topic: 7 day average daily max
- Replies: 8
- Views: 8947
Re: 7 day average daily max
Just a short follow-up note: the initial value may need to be customized for a particular application. In my case, the initial value of "Value" wasn't 0, and so I needed to initialize it to the equivalent of .
Code: Select all
Value*Hours per Day*Days per Week*One Week
- Fri Dec 28, 2018 10:02 pm
- Forum: Vensim
- Topic: 7 day average daily max
- Replies: 8
- Views: 8947
Re: 7 day average daily max
That was close, Tom, and a big help. I made a few modifications that I think do what I need: I changed Daily Max to sample the result one TIME STEP earlier. I sampled record at midnight to get the result before it was cleared for a new day. I sampled Average Daily Max at midnight to get 7DADM, the v...
- Tue Dec 18, 2018 11:35 pm
- Forum: Vensim
- Topic: Model predictive control using Vensim?
- Replies: 6
- Views: 9027
Re: Model predictive control using Vensim?
Thanks, Tom. That's sorta what I expected--not the loaner quad, though! I think I'll run this on a daily cycle, which /should/ give me more than enough time to run the optimizer on what I've got. I figure it's easiest to set up the data feeding infrastructure externally in R or Python or Matlab--wha...
- Tue Dec 18, 2018 10:04 pm
- Forum: Vensim
- Topic: 7 day average daily max
- Replies: 8
- Views: 8947
Re: 7 day average daily max
Thanks, Tom. It looks promising. Let me see if I can switch it to weeklyAverage(dailyMax) successfully.
- Tue Dec 18, 2018 4:43 pm
- Forum: Vensim
- Topic: 7 day average daily max
- Replies: 8
- Views: 8947
Re: 7 day average daily max
@Administrator: I was beginning to come to that idea doing this outside of Vensim might be a more natural approach, too, although I hadn't considered Vensim's external functions (I've not done any of those yet) but rather putting out the raw data and then letting an external program such as R calcul...
- Mon Dec 17, 2018 11:20 pm
- Forum: Vensim
- Topic: 7 day average daily max
- Replies: 8
- Views: 8947
7 day average daily max
I'm stuck on a "data processing" problem, and I suspect the answer is easier than I've been making it. My task: calculate the "7 day average daily max" of a variable (auxiliary or level). More than that, I'd like to see each day when that value is greater than a certain (perhaps ...
- Thu Dec 13, 2018 6:24 pm
- Forum: Vensim
- Topic: Model predictive control using Vensim?
- Replies: 6
- Views: 9027
Re: Model predictive control using Vensim?
@JJ: Thanks. I agree that, in many and perhaps most cases (and certainly the greenhouse problem), the decision process is key, and people are key parts of that. This problem is, I think, different: we want to maintain the temperature in a river such that the resident fish can thrive. The decision ru...
- Wed Dec 12, 2018 11:01 pm
- Forum: Vensim
- Topic: Model predictive control using Vensim?
- Replies: 6
- Views: 9027
Re: Model predictive control using Vensim?
Small correction: I did find "Analysis and control design of sustainable policies for greenhouse gas emissions" (https://ac.els-cdn.com/S1359431112002657/1-s2.0-S1359431112002657-main.pdf?_tid=9c17407e-af46-43bd-b32d-0b620830ed83&acdnat=1544655698_9918bced092ffc6c57437133333a60aa), whi...
- Wed Dec 12, 2018 10:47 pm
- Forum: Vensim
- Topic: Model predictive control using Vensim?
- Replies: 6
- Views: 9027
Model predictive control using Vensim?
Does anyone know of implementations of model predictive control (MPC) using Vensim? I suspect it's just a matter of creating a model of the plant, complete with a VOC file to control optimization, and then writing wrapper code in R or Python or ... that sets up a command file that sets up and runs t...
- Fri Nov 30, 2018 11:36 pm
- Forum: Vensim
- Topic: Strange result with a constant in Vensim
- Replies: 4
- Views: 4941
Re: Strange result with a constant in Vensim
Thanks! The .cin file is the answer. I had apparently run the optimizer a couple of weeks ago to adjust those values, and that's what it had come up with. (They are really bad values, but that's my problem.) I should probably learn how to create external functions some day, but I'm not using them he...
- Fri Nov 30, 2018 11:26 pm
- Forum: Vensim
- Topic: What improvements would you like to see in Vensim?
- Replies: 162
- Views: 221169
Re: What improvements would you like to see in Vensim?
It would be seemingly consistent and helpful to require--or at least allow--Vensim's trigonometric functions to accept units with arguments. When I have to use such functions, I likely have both radians and degrees in the model: the former to make Vensim happy and the latter for the user's convenien...
- Fri Nov 30, 2018 10:43 pm
- Forum: Vensim
- Topic: Strange result with a constant in Vensim
- Replies: 4
- Views: 4941
Strange result with a constant in Vensim
I'm developing a model that I can't share publicly at this stage, but it's giving seemingly-strange results (probably PEBKAC, but I don't see it yet). I defined a subscripted variable (Dmnl) called Light Extinction Ratio and defined it as a Normal Constant with value 0.1 (as a placeholder) for each ...
- Thu Nov 29, 2018 6:17 pm
- Forum: Vensim
- Topic: What improvements would you like to see in Vensim?
- Replies: 162
- Views: 221169
Re: What improvements would you like to see in Vensim?
Would it be possible to add an option to Tools > Options to set the default zoom level? The default zoom works fine on my workstation, because I lay out the model to fit. When I project a model on a screen, I often have to zoom to fit to screen, and that has to be repeated on each new view. I think ...
- Mon Oct 15, 2018 7:17 pm
- Forum: Vensim
- Topic: Help with including external images in Vensim sketch
- Replies: 4
- Views: 6334
Re: Help with including external images in Vensim sketch
Thanks. I suspect getting the image on the clipboard was part of the problem; I don't generally know how to see the clipboard contents on Windows without pasting them somewhere. When raising the issue, can you consider allowing WMF files? As I noted, my bitmap in this case is about 20MB, which makes...
- Thu Oct 11, 2018 6:04 pm
- Forum: Vensim
- Topic: Help with including external images in Vensim sketch
- Replies: 4
- Views: 6334
Help with including external images in Vensim sketch
Can someone help me learn how to include external images in a Vensim sketch reliably? An example: I opened DSS (I'm running 7.3.4). I created a new model. I selected the Comment tool. The Graphics panel had "None" selected, and "Bitmap" and "Metafile" were grayed out. I...
- Tue Nov 28, 2017 3:58 pm
- Forum: Vensim
- Topic: Simulation outside of the range of the data
- Replies: 3
- Views: 4436
Re: Simulation outside of the range of the data
Tom, Thanks! The data equation idea seems to have done what I want. The customary forecast data for both the variables in question has the same domain as the metric forecast data, and the same is true of the historical data. The only combined data that spans both domains is the simulated result, and...
- Mon Nov 27, 2017 9:51 pm
- Forum: Vensim
- Topic: Simulation outside of the range of the data
- Replies: 3
- Views: 4436
Simulation outside of the range of the data
In https://www.vensim.com/documentation/21170.htm, the manual says, "When the simulation is outside of the range of the data the closest value of the data will be used. This means that before 1938 the first value for atmospheric CFC 11 releases will be used and that in 1994 and beyond the last ...
- Wed Nov 22, 2017 12:09 am
- Forum: Vensim
- Topic: What improvements would you like to see in Vensim?
- Replies: 162
- Views: 221169
Re: What improvements would you like to see in Vensim?
I read "'cell' names the cell that the first Data value is on." but didn't read to the notes that "You can substitute named Excel ranges for 'time row or col' and 'cell'. " So the only difference seems to be that I might put "MyData" in cell C3 and want to reference it,...
- Tue Nov 21, 2017 9:35 pm
- Forum: Vensim
- Topic: What improvements would you like to see in Vensim?
- Replies: 162
- Views: 221169
Re: What improvements would you like to see in Vensim?
I'd like a function GET XLS DATA NAMED() that's similar to GET XLS DATA() except that you would name locations instead of give column and cell references. I don't think you'd need to use named areas; it could be as simple as passing the character string found in the first row of the two appropriate ...
- Mon Nov 06, 2017 11:22 pm
- Forum: Vensim
- Topic: What improvements would you like to see in Vensim?
- Replies: 162
- Views: 221169
Re: What improvements would you like to see in Vensim?
It could be nice to let one chain calls to GET DATA MEDIAN(); that is, allow the first argument to be something other than just a data variable. For example, I'm using a median filter followed by a DIY first (backward) difference to filter accumulated precipitation over a year and turn it into preci...
- Thu Oct 12, 2017 7:49 pm
- Forum: Vensim
- Topic: Compiling a model with cygwin or Rtools?
- Replies: 4
- Views: 5320
Re: Compiling a model with cygwin or Rtools?
The only path set right now on my system is the Molecule library path. Does this mean that I store a .vmf file in c:\Users\Public\Vensim\comp (W7), put mdl.bat there, and find the compiled result there? But the .mdl file stays in its current directory? I guess I'm confused. It should get easier, I'm...
- Wed Oct 11, 2017 6:11 pm
- Forum: Vensim
- Topic: Compiling a model with cygwin or Rtools?
- Replies: 4
- Views: 5320
Compiling a model with cygwin or Rtools?
Has anyone successfully compiled a model using either an installed Cygwin or Rtools version of gcc? It's been awhile since I've written any compiled code. I have installed Rtools over top of Cygwin on W7, which means my compiler is here: $ which gcc /cygdrive/c/Rtools/gcc-4.6.3/bin/gcc I saved my mo...
- Thu Sep 14, 2017 8:58 pm
- Forum: Vensim
- Topic: Changing FINAL TIME in a command file and other problems
- Replies: 9
- Views: 6671
Re: Changing FINAL TIME in a command file and other problems
I created cft4.cmd that has no exit command: SPECIAL>NOINTERACTION SPECIAL>LOADMODEL|Changing FINAL TIME.mdl SIMULATE>SETVAL|FINAL TIME=168 SIMULATE>RUNNAME|extendfinaltime MENU>RUN|O MENU>VDF2CSV|extendfinaltime.vdf|extendfinaltime.CSV|extendfinaltime.lst|*||0|168 When I run it, it loads the model,...