I'm solving a multi-period dynamic stochastic problem with decisions made for the entire problem in advance and then moving through time sequentially.
I make use of dynamic sets to track time and which variables to fix.
I have three main sets to track time
set SetTimeInterest ordered := 1 .. Time ;
set SetTimeInterestStochastic ordered := 1+time .. Time ;
set SetTimeInterestFixed ordered := 1 .. time-1 ;
Initially time = 0 and I solve for the variables.
I then let time := 1
I then fix a set of variables, eg
fix {t in SetTimeInterestFixed, j in SetBalanceBidPrices} Qbid_b[t,j] ;
If I then enter in the command "display {t in SetTimeInterest} sum{b in SetBalancing} rho_b[b] * Qbid_sum_b[b,t] ;" the model goes through the pre-solve phase and tells me how many variables etc it has eliminated.
var Qbid_sum_b{b in SetBalancing, t in SetTimeInterest} = sum{j in SetBalanceBidPrices} Qbid_b[t,j] * Abid_b[b,t,j] ;
where Abid_b is a parameter and Qbid_b is a variable.
In the model, Qbid_sum_b shows up in a piecewise linear constraint:
subject to FloodingStoch {b in SetBalancing, t in SetTimeInterestStochastic} : Q_b[b,t] = << Q_b_bar[b,t] ; 1,0 >> Qbid_sum_b[b,t] ;
Why is the model going through the pre-solve phase when displaying a variable from the model?
Could there be a large problem in my code? I can share a zip folder if needed.
thanks
James