Hi there.
I have a question related to the correct implementation of if statement.
The problem is something like these, I have a model runnig a 24 value set (t), while the model runs the maximum value of the set has to be send to another variable. Such as:
if (dwB(t) >= dwB(t-1))
PB_rated=dwB(t)
at the end, the model must return the maximum value of the variable dwB(t).
How can i implement these statement correctly?
Thanks.
–
To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/BDaQkbyeRnIJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.
Hi, please follow the guidelines as defined in
https://groups.google.com/forum/#!forum/gamsworld
so we can try to help you, with what you provided it is a bit
difficult, e.g. do you mean “outcome” is the solution of a previous
model run? “dependent” in a way that if the variable is higher than a
certain value used in the condition the value will differ?
2015-02-12 11:14 GMT+01:00 Rajesh Kumar Rai :
Hi Guys
I need some help with the if statement. I have a parameter that is dependent
on the outcome of a variable. How do i go about implementing this in my
syntax?
Typically from most examples that I have seen, the parameter value may
change depending on another scalar value. But the case that I described
above is slightly
different.
Thanks for the clarification!
–
“gamsworld” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
\