Veda2.0 Released!


Discrete Unit Commitment but no marginals available
#1
Dear All,

I am setting a unit commitment model with the Discrete unit commitment option but I do not get marginal values.
I've tried several options, including relaxfixedinfeas 1, but I always get the message:  "Returning a primal only solution to GAMS (marginals all set to NA)".

In addition, every time I run the DSC option I get the message: "Not enough memory resources are available to process this command" at the top of the cmd window.



I am sure that there isn't any memory issue as I have available 128 GB. 
Unfortunately, this message is not included in the log file. 

Is there any option to be able to trace also the marginals?
Thank you
Philip
Reply
#2
> I always get the message:  "Returning a primal only solution to GAMS (marginals all set to NA)".

I think that should happen only when the final LP solve fails. Without the final solve no proper marginal values are available and only NAs are returned to GAMS.

In some cases the final solve could be infeasible simply due to tolerances. In the final solve the discrete variables are fixed to integer values, and the fixed integer solution may then end up being infeasible, although before fixing those variables the MIP solution was feasible (the integrality tolerance is typically larger than the feasibility tolerance). Such a problem would thus be related to the detailed characteristics of your model. Can you post the RUN log file (*run_log.txt), to see what Cplex writes out during the solve?

I vaguely recall that there might be an option to re-define some options for the final solve (such as tolerances), which could perhaps solve your problem.
Reply
#3
Dear Antti thank you for your reply,

I attach 2 log files, the first one (v2_disp_duc2022_run_log.txt) is related to a small model where the Reduced MIP has 192 binaries, 0 generals, 0 SOSs, and 384 indicators and the second log file is related to a bigger problem with the Reduced MIP having 18000 binaries, 0 generals, 0 SOSs, and 720 indicators.


Thank you in Advance
Philip


Attached Files
.txt   v2_disp_duc2022_run_log.txt (Size: 47.17 KB / Downloads: 1)
.txt   gran77f_dp2thl84_bidd6_run_log.txt (Size: 73.23 KB / Downloads: 1)
Reply
#4
Ok, thanks for the logs.

It seems that for some reason in your cases no final solve is performed by Cplex, which explains the missing marginals.  It could be that using indicator constraints might have something to do with that, but I don't really know. The design for the indicator constraints was done by PSI, so maybe they might have some experience and insights about getting the marginals when using indicator constraints. Of course you could also try using the cplex solvefinal 1 option explicitly, but it should be on by default.

Sorry for not being able to provide better help (never faced this issue before).
Reply
#5
Thank You Antti,

I 've tried solvefinal @1 (though default option) but again no marginals were available.

Anyway, thank you
Philip
Reply
#6
Small follow-up:
I found some old test examples for running with DUC (and indicator constraints), and I am getting the final solve performed when running those cases. Example output:

MIP status(101): integer optimal solution
Cplex Time: 0.19sec (det. 309.66 ticks)
Fixing integer variables, and solving final LP...
Fixed MIP status(1): optimal
Cplex Time: 0.03sec (det. 39.76 ticks)
Proven optimal solution.

MIP Solution:      3970033.231802    (2102 iterations, 206 nodes)
Final Solve:      3970033.231802    (0 iterations)

Best possible:    3970033.231802
Absolute gap:            0.000000
Relative gap:            0.000000


Therefore, I think the issue cannot be related to using indicator constraints. Instead it might actually be a GAMS issue. Concerning the message: " Returning a primal only solution to GAMS (marginals all set to NA)."
This message clearly comes from the GAMS link for Cplex, and the GAMS links have, in fact, been having several issues with handling the Cplex solution statuses correctly. So, one possibility is that your problem could be related to those issues.

Do you happen to have some older or newer versions of GAMS that you could test with?  If you like, I could also test your model with my GAMS version, to see if it performs the final solve here. For doing that test, just provide me with the *.DD and *.RUN files (for the smaller case you mentioned above).
[+] 1 user Likes Antti-L's post
Reply
#7
Sure Antti, 

I am attaching the .DD files, the .RUN file and also the CPLEX options file that is being used.

I have tried with Versions 4.6.3, 4.7.8 and 4.8.3.

Thank You
Philip


Attached Files
.zip   DUC_for_Antti.zip (Size: 4.91 KB / Downloads: 1)
Reply
#8
Thanks.

And yes, my test confirmed my hypothesis.  By running your model with my GAMS version, the final solve was performed by Cplex, and thus the marginals were reported normally. Consequently, it seems that there is basically nothing we can do to help you here with that issue, other than to suggest either upgrading or downgrading your GAMS.  Blush

> I have tried with Versions 4.6.3, 4.7.8 and 4.8.3.
Those are not GAMS version numbers. They look like TIMES versions; but the issue is with GAMS. Your version appears to be GAMS 33.2, so suggest to try e.g. with some older versions.
Reply
#9
(29-01-2025, 07:07 PM)Antti-L Wrote: Thanks.

And yes, my test confirmed my hypothesis.  By running your model with my GAMS version, the final solve was performed by Cplex, and thus the marginals were reported normally. Consequently, it seems that there is basically nothing we can do to help you here with that issue, other than to suggest either upgrading or downgrading your GAMS.  Blush

> I have tried with Versions 4.6.3, 4.7.8 and 4.8.3.
Those are not GAMS version numbers. They look like TIMES versions; but the issue is with GAMS. Your version appears to be GAMS 33.2, so suggest to try e.g. with some older versions.

Sure, 4.6.3, 4.7.8 and 4.8.3 are TIMES versions. And of course you referred to GAMS versions. I couldn't believe of GAMS issue (?) but only for TIMES' source issue.
I am sorry for the misunderstanding.

I will try GAMS 32.?

Thank You, I will let you know.
Philip
Reply
#10
Yes Antti, 

It works fine with GAMS 32.2

So the problem was with GAMS and not with TIMES source or model formulation.

Thank You
Philip
[+] 1 user Likes philip's post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Divergent LCOE and marginals Lukas Novak 12 4,062 25-11-2022, 02:25 PM
Last Post: Lukas Novak
  Problem unit conversion ArmineA 7 4,206 02-11-2022, 05:04 PM
Last Post: AKanudia
  is Unit conversion only available under Advanced license ? YuFeng 2 2,128 19-05-2022, 04:27 PM
Last Post: YuFeng
  Problem unit conversion Reports Julie 0 1,313 05-10-2021, 06:27 PM
Last Post: Julie

Forum Jump:


Users browsing this thread: 1 Guest(s)