Hello there,
I have this problem. I tried to combine these two variables, marginal cost coal and marginal cost gas.
I want the output for "combine marginal cost" to be like this;
I tried using the;
combine marginal cost = IF THEN ELSE( marginal cost gas[gas unit]<0 , IF THEN ELSE( marginal cost gas[gas unit] <0 , marginal cost coal[coal unit]:AND:marginal cost gas[gas unit] , 0 ), 0 )
but it didn't give me the output that i want. This thing has been bothering me for a week
I really hope anyone can help me on this.
Thanks in advance!
Combine variable
-
- Senior Member
- Posts: 80
- Joined: Sun Feb 02, 2020 5:10 am
- Vensim version: DSS
Combine variable
- Attachments
-
- combine.mdl
- (4.53 KiB) Downloaded 151 times
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: Combine variable
I see now what you want (I think).
You would need to combine the subscript ranges into a single one. See the attached model.
You would need to combine the subscript ranges into a single one. See the attached model.
- Attachments
-
- combine.mdl
- (4.93 KiB) Downloaded 166 times
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
-
- Senior Member
- Posts: 80
- Joined: Sun Feb 02, 2020 5:10 am
- Vensim version: DSS
Re: Combine variable
Oh my goodness!Administrator wrote: ↑Fri Oct 02, 2020 7:01 am I see now what you want (I think).
You would need to combine the subscript ranges into a single one. See the attached model.
Thank you so so much! Finally i got the answer on how to do that.
I owe you big time, Admin!<3