Originally posted by: Thaher
Hello,
I have a set of 4 time periods ( say 6 hour each) which all together make a cycle for fluid storage tank (charging and discharging).
While it is easy to declare the periods
int d =...; // periods
range Periods = 1..d;
dvar float+ I[Tanks][Periods]; //Inventory level of fluid stored at tank installed at the end of period d
It was perplexing as to how to enforce in coding that fluid inventory at the beginning of first period shall be equal to the inventory at the end of forth period knowing that my inventory variable defines level at the end of the period not its start.
I am not sure if I have to declare each period twice ( start and finish).
Any Suggestion please.
#DecisionOptimization#MathematicalProgramming-General