Hello,
I want CPLEX to stop when an integer feasible solution that has been proved to be within 5% of optimality. For this, I am making
OPTIONS
OPTCR=0.05;
After the time limit I set i.e. RESLIM=3600, I check the relative gap and see that it is i.e. 0.00085. In fact I want it to stop when the relative gap is 0.05 but it uses all the time limit I set. Am I doing sth wrong?
CPLEX OPTCR
Re: CPLEX OPTCR
Hi,
When you set
Cplex should terminate as soon as that gap is reached.
Could you share a log and your code?
Fred
When you set
Code: Select all
OPTIONS OPTCR=0.05;
Could you share a log and your code?
Fred
-
- User
- Posts: 13
- Joined: 6 years ago
Re: CPLEX OPTCR
Thank you Fred, in fact I just fixed my problem.
In my code at somewhere there was OPTCR=0; I could not recognize, for that reason even I was defining it as 0.05 at the beginning of the code it was taking as 0.
Now it is ok, thanks for your reply
In my code at somewhere there was OPTCR=0; I could not recognize, for that reason even I was defining it as 0.05 at the beginning of the code it was taking as 0.
Now it is ok, thanks for your reply