Assign Values to variables
Posted: Mon Mar 12, 2018 10:22 am
Hey guys,
I'm a beginner, when it comes to GAMS.
I have a question about a variable. I'm right now trying to model a model of a thermal energy storage.
For this I need to use ordered sets to calculate the temperature with respect to the temperature of the time step before.
For this I implemented the set:
set i time steps / 0*720 /;
as the number of time steps.
I declared the temperature:
variable T_ti(i) input temperature of the thermal energy storage;
as a subset of i. Now I want to assign an initial value to the first value of T_ti.
How do I do this? Do I need to implement an equation for it?
Thanks a lot!
Cheers,
Max
I'm a beginner, when it comes to GAMS.
I have a question about a variable. I'm right now trying to model a model of a thermal energy storage.
For this I need to use ordered sets to calculate the temperature with respect to the temperature of the time step before.
For this I implemented the set:
set i time steps / 0*720 /;
as the number of time steps.
I declared the temperature:
variable T_ti(i) input temperature of the thermal energy storage;
as a subset of i. Now I want to assign an initial value to the first value of T_ti.
How do I do this? Do I need to implement an equation for it?
Thanks a lot!
Cheers,
Max