How to lower relative and absolute gap?

Problems with syntax of GAMS
Post Reply
seydaseyda
User
User
Posts: 31
Joined: 3 years ago

How to lower relative and absolute gap?

Post by seydaseyda »

Hi everyone!

I added these two line to my model but it still gives me very big absolute gap and I can not trust my optimal result.


option optcr = 0;
Option optca=0;

How can i lower these gaps?
abhosekar
Moderator
Moderator
Posts: 295
Joined: 3 years ago

Re: How to lower relative and absolute gap?

Post by abhosekar »

optcr and optca are tolerances that tell the solver when to stop. This has nothing to do with the absolute gap that solver achieves. You can set the tolerance however low you want, if the solver does not reach it, you will get bad results.
The answer lies in reformulating your problem and doing other things better. Setting optcr and optca is not the correct way.
- Atharv
seydaseyda
User
User
Posts: 31
Joined: 3 years ago

Re: How to lower relative and absolute gap?

Post by seydaseyda »

Hi,
okay and how can i reformulate my model? Which parts should I focus on especially?
abhosekar
Moderator
Moderator
Posts: 295
Joined: 3 years ago

Re: How to lower relative and absolute gap?

Post by abhosekar »

That's a vague question. It is also a completely different question. Unfortunately, there is no answer without looking at your model. In fact, your model could actually be very difficult and lowering gap is not in your hands.
If you need further help, provide your entire code (may be in a separate thread) that can let other users reproduce this issue.

HTH.

-Atharv
Post Reply