Page 1 of 1

Problem with the same code between different computer

Posted: Thu Aug 29, 2019 6:10 am
by chhsu1118
unequal.gms
(3.77 KiB) Downloaded 225 times
unequal.gms
(3.77 KiB) Downloaded 225 times
Hi,
I try to run the code which coded by the senior,
but i found the difference result.
So i tried to run the same code between different computer,
the result is different.
Thx for answering.

Re: Problem with the same code between different computer

Posted: Thu Aug 29, 2019 3:19 pm
by dirkse
Hello,

You define a model and solve it, with a time limit of 15 seconds. It is not surprising that different computers make different amounts of progress before they hit the time limit and return the incumbent solution. In fact, you should expect to see this same behavior even on the same computer. For example, my laptop won't run at full speed if it isn't plugged in and the battery falls below a certain threshold. This will produce different results.

Take out the time limit (i.e. reslim) and see what happens.

Also, look at the log output - it explains what is going on. That what it is there for.

-Steve

Re: Problem with the same code between different computer

Posted: Tue Sep 03, 2019 10:23 am
by chhsu1118
Hello~

I tried to delete the time limit, but the results were different.
Thanks for replying.

-Ray-