Controller
Controller
There are three variables that when I change one of them, I like the two others would change, but sum of them be equals 1..
I meant sum of them must be always equals to 1.
How is it possible?
I meant sum of them must be always equals to 1.
How is it possible?
Re: Controller
any response?
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: Controller
Can you explain in more detail what you want to do?
It's easy to do something like
a = 0.5
b = 0.2
c = 1 - a - b
But that probably is not what you need to implement.
You can also call a, b and c weights.
a = 100
b = 100
c = 100
sum of a b and c = a + b + c
relative a = a / sum of a b and c
relative b = b / sum of a b and c
relative c = c / sum of a b and c
check = relative a + relative b + relative c (this should be = 1)
It's easy to do something like
a = 0.5
b = 0.2
c = 1 - a - b
But that probably is not what you need to implement.
You can also call a, b and c weights.
a = 100
b = 100
c = 100
sum of a b and c = a + b + c
relative a = a / sum of a b and c
relative b = b / sum of a b and c
relative c = c / sum of a b and c
check = relative a + relative b + relative c (this should be = 1)
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
Re: Controller
Also, in Venapp there's a SLIDEVARTIE control that handles this.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Re: Controller
thxAdministrator wrote: ↑Mon Feb 08, 2021 11:01 am Can you explain in more detail what you want to do?
It's easy to do something like
a = 0.5
b = 0.2
c = 1 - a - b
But that probably is not what you need to implement.
You can also call a, b and c weights.
a = 100
b = 100
c = 100
sum of a b and c = a + b + c
relative a = a / sum of a b and c
relative b = b / sum of a b and c
relative c = c / sum of a b and c
check = relative a + relative b + relative c (this should be = 1)
what do you mean by check? how the model avoid being anything except 1?
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: Controller
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
Re: Controller
"Check" is literally just a checksum to verify that things are working. You would use relative a/b/c as inputs to your model. The user would adjust the weights a/b/c.swapple wrote: ↑Tue Mar 09, 2021 5:22 pmthxAdministrator wrote: ↑Mon Feb 08, 2021 11:01 am
You can also call a, b and c weights.
a = 100
b = 100
c = 100
sum of a b and c = a + b + c
relative a = a / sum of a b and c
relative b = b / sum of a b and c
relative c = c / sum of a b and c
check = relative a + relative b + relative c (this should be = 1)
what do you mean by check? how the model avoid being anything except 1?
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Re: Controller
thanksAdministrator wrote: ↑Tue Mar 09, 2021 6:26 pm http://www.vensim.com/documentation/venapps.html
Only in Vensim DSS.
Re: Controller
thanks you mean we have to check it by ourselvestomfid wrote: ↑Thu Mar 11, 2021 5:11 pm"Check" is literally just a checksum to verify that things are working. You would use relative a/b/c as inputs to your model. The user would adjust the weights a/b/c.swapple wrote: ↑Tue Mar 09, 2021 5:22 pmthxAdministrator wrote: ↑Mon Feb 08, 2021 11:01 am
You can also call a, b and c weights.
a = 100
b = 100
c = 100
sum of a b and c = a + b + c
relative a = a / sum of a b and c
relative b = b / sum of a b and c
relative c = c / sum of a b and c
check = relative a + relative b + relative c (this should be = 1)
what do you mean by check? how the model avoid being anything except 1?
Re: Controller
No, you don't really have to check it at all - it's just for verification that you've implemented the equations correctly.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/