Problem with the same code between different computer

Problems with modeling
Post Reply
chhsu1118
User
User
Posts: 2
Joined: 1 month ago

Problem with the same code between different computer

Post by chhsu1118 » 1 month ago

unequal.gms
(3.77 KiB) Downloaded 7 times
unequal.gms
(3.77 KiB) Downloaded 7 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: 84
Joined: 3 years ago
Location: Fairfax, VA

Re: Problem with the same code between different computer

Post by dirkse » 1 month ago

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: 1 month ago

Re: Problem with the same code between different computer

Post by chhsu1118 » 1 month ago

Hello~

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

-Ray-

Post Reply