Problem with the same code between different computer

Problems with modeling
Post Reply
chhsu1118
User
User
Posts: 2
Joined: 4 years ago

Problem with the same code between different computer

Post by chhsu1118 »

unequal.gms
(3.77 KiB) Downloaded 215 times
unequal.gms
(3.77 KiB) Downloaded 215 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.
User avatar
dirkse
Moderator
Moderator
Posts: 214
Joined: 7 years ago
Location: Fairfax, VA

Re: Problem with the same code between different computer

Post 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
chhsu1118
User
User
Posts: 2
Joined: 4 years ago

Re: Problem with the same code between different computer

Post by chhsu1118 »

Hello~

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

-Ray-
Post Reply