How to map one variable to another variable?

Use this forum to post Vensim related questions.
Post Reply
husnafezaahmad
Senior Member
Posts: 80
Joined: Sun Feb 02, 2020 5:10 am
Vensim version: DSS

How to map one variable to another variable?

Post by husnafezaahmad »

Hello there! :D

I have this one question regarding on the model that i'm currently working with.

I have 2 variables; sorted marginal cost and sorted generation as show in figure below.
Screen Shot 2020-10-09 at 23.36.57.png
Screen Shot 2020-10-09 at 23.36.57.png (218.94 KiB) Viewed 3500 times

These two variables are mapped under the same subscript and both are actually correlate. But my problem is, how do i arrange these two variables that can give me an output like this;
Screen Shot 2020-10-09 at 23.46.39.png
Screen Shot 2020-10-09 at 23.46.39.png (238.5 KiB) Viewed 3500 times

Is it possible to do so?
Administrator
Super Administrator
Posts: 4589
Joined: Wed Mar 05, 2003 3:10 am

Re: How to map one variable to another variable?

Post by Administrator »

Can you upload the model? I'm sure it's possible, but we don't have enough information to help.
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
Administrator
Super Administrator
Posts: 4589
Joined: Wed Mar 05, 2003 3:10 am

Re: How to map one variable to another variable?

Post by Administrator »

Maybe vector elm map function is what you need?

You can use vector elm map to pick elements out from another subscripted parameter.
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
husnafezaahmad
Senior Member
Posts: 80
Joined: Sun Feb 02, 2020 5:10 am
Vensim version: DSS

Re: How to map one variable to another variable?

Post by husnafezaahmad »

Administrator wrote: Fri Oct 09, 2020 3:56 pm Can you upload the model? I'm sure it's possible, but we don't have enough information to help.
Here it is :D

It's on the MARGINAL COST's view.
Attachments
Initial One.mdl
(55.21 KiB) Downloaded 155 times
husnafezaahmad
Senior Member
Posts: 80
Joined: Sun Feb 02, 2020 5:10 am
Vensim version: DSS

Re: How to map one variable to another variable?

Post by husnafezaahmad »

Administrator wrote: Fri Oct 09, 2020 3:57 pm Maybe vector elm map function is what you need?

You can use vector elm map to pick elements out from another subscripted parameter.
I tried using VECTOR ELM MAP as suggested, but it seems it didn't work (or maybe i used it wrong?)
husnafezaahmad
Senior Member
Posts: 80
Joined: Sun Feb 02, 2020 5:10 am
Vensim version: DSS

Re: How to map one variable to another variable?

Post by husnafezaahmad »

Anyone can please help me? :'(
Administrator
Super Administrator
Posts: 4589
Joined: Wed Mar 05, 2003 3:10 am

Re: How to map one variable to another variable?

Post by Administrator »

I'm not sure I understand what you need to do. Are you asking how to generate an Excel sheet with the parameters as you have them in your sheet?
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
tomfid
Administrator
Posts: 3808
Joined: Wed May 24, 2006 4:54 am

Re: How to map one variable to another variable?

Post by tomfid »

If the requirement is a table that interleaves marginal cost and generation, as in your example, I don't think there's a way to do that within Vensim.
husnafezaahmad
Senior Member
Posts: 80
Joined: Sun Feb 02, 2020 5:10 am
Vensim version: DSS

Re: How to map one variable to another variable?

Post by husnafezaahmad »

tomfid wrote: Mon Oct 12, 2020 3:32 pm If the requirement is a table that interleaves marginal cost and generation, as in your example, I don't think there's a way to do that within Vensim.
Oh really? It's okay then.Thanks a lot Tom & Admin :)
Post Reply