From your email it is not clear what issue you face. You just attached the standard model solmpool from the GAMS Model Library (https://www.gams.com/latest/gamslib_ml/libhtml/gamslib_solmpool.html). The alias (*,u) is used to initialize the parameter xcostX(soln,*) to 0. Since an assignment xcostX(soln,*) = is not possible, this model needs an alias to the universe *. I doubt that this is your problem. Perhaps you can send your model and show where the real issue is.

-Michael

Here is the corrected code. -Michael

eoglsp_solpool_mrb.gms (12.6 KB)

Enrique,

In your latest example there are 4 solve statements. You loop over 2 scenarios and for every scenario you solve the model twice.

It seems that in readsoln.gms you are computing some sort of report parameter xcostX. You could give this parameter additional indices for scenario and 1st/2nd solve to store the results from all solves (note that you should not clear xcostX in that case).

You could also give the solnpool gdx files different names in the cplex.opt file (e.g. with a scenario and 1st/2nd Solve suffix) if you want to keep them all.

I attached a modified version of the gms file.

glsp_pool_inst_ff.gms (13.7 KB)

Hi,

if you want to incorporate the solution time in report parameter xcostx, you could do for example

```
xcostX(scenario,'%1',solnpool,'TIME','','','') = EOGLSP.resusd;
```

This gives the time the solver took for a solve statement. I don’t think that you can access the information at what time of a solve a particular solution from the solution pool was found.

I hope this helps!

Fred