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?
How to lower relative and absolute gap?
Re: How to lower relative and absolute gap?
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
The answer lies in reformulating your problem and doing other things better. Setting optcr and optca is not the correct way.
- Atharv
-
- User
- Posts: 31
- Joined: 3 years ago
Re: How to lower relative and absolute gap?
Hi,
okay and how can i reformulate my model? Which parts should I focus on especially?
okay and how can i reformulate my model? Which parts should I focus on especially?
Re: How to lower relative and absolute gap?
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
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