OK I got it. Thank you so much!
Ray
Search found 8 matches
- Tue Aug 13, 2019 1:40 am
- Forum: Vensim
- Topic: Change the default legend in the custom graph tool
- Replies: 2
- Views: 1520
- Mon Aug 12, 2019 12:39 pm
- Forum: Vensim
- Topic: Change the default legend in the custom graph tool
- Replies: 2
- Views: 1520
Change the default legend in the custom graph tool
Hi, I try to use the custom graph tool to make figures from the simulation outputs of VENSIM. Please see the file attached. I have two questions as follows: 1. The legend in the bottom occupies too much space. How to make one-column legend into two columns? 2. The variable name "adopted consume...
- Tue Nov 01, 2016 12:14 pm
- Forum: Vensim
- Topic: Problem: if then without else
- Replies: 2
- Views: 1876
Re: Problem: if then without else
Yes, the SAMPLE IF TRUE function has solved my problem. Thanks a lot.
Ray
Ray
- Tue Nov 01, 2016 11:50 am
- Forum: Vensim
- Topic: Problem: if then without else
- Replies: 2
- Views: 1876
Problem: if then without else
Hi, I'd like to implement a function that updates a variable until the condition is met. It looks simple using any programming language, but I tried to solve this problem for one day. I define a variable in VENSIM and use IF-THEN-ELSE as follow: IF THEN ELSE(random number > threshold value, RANDOM U...
- Tue Sep 06, 2016 11:01 am
- Forum: Vensim
- Topic: How to use Vensim for programming a do-while loop
- Replies: 7
- Views: 4193
Re: How to use Vensim for programming a do-while loop
I will try it. But the problem now becomes how to perform "Set the value to 0 for projects that are inactive" in each simulated year automatically, according to the number of projects assigned each year based on yearly operating profit obtained, rather than manually? I need to figure it o...
- Mon Sep 05, 2016 8:31 pm
- Forum: Vensim
- Topic: How to use Vensim for programming a do-while loop
- Replies: 7
- Views: 4193
Re: How to use Vensim for programming a do-while loop
"Create an array dimension for the projects, and use SUM(value[project!]) to add them up. " "Set the value to 0 for projects that are inactive." I will try it. But the problem now becomes how to perform "Set the value to 0 for projects that are inactive" in each simulat...
- Mon Sep 05, 2016 8:06 pm
- Forum: Vensim
- Topic: How to use Vensim for programming a do-while loop
- Replies: 7
- Views: 4193
Re: How to use Vensim for programming a do-while loop
"Can you post the model you have? " The model is still in the conceptual stage, so it is quite messy and not suitable to share here. "If you are summing over a subscript range, you can use the SUM function." The problem is that in my case the subscript range (i.e., the number of...
- Mon Sep 05, 2016 1:31 pm
- Forum: Vensim
- Topic: How to use Vensim for programming a do-while loop
- Replies: 7
- Views: 4193
How to use Vensim for programming a do-while loop
Hi, I am trying to use Vensim to develop a system dynamics model for R&D portfolio management recently. I need to evaluate the financial performance of each project at the end of each year (every project has a different financial value and cannot be known in advance) in a portfolio and I have a ...