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?

I have a similar problem. I also want to assign starting values to my MIP in order to speed up the solution. I tried assigning the values using the “.l” suffix to the respective values and using the mipstart=1 option of CPLEX. However, this solution was not recognozed since the log file contains the following message : “MIP start ‘m1’ defined no solution”.

The weird thing about it is, that I just used the solution I got from a presolve of the exact same model in order to play around with the syntax.