Search found 18 matches

by Lucas
6 hours ago
Forum: Archive Google Group
Topic: Reach two different answers in two different versions of GAMS
Replies: 2
Views: 31

Re: Reach two different answers in two different versions of GAMS

Dear Renger,
The model status is optimal in both versions, and The fixed answer is also feasible.
Thanks for the detailed and informative answer ;)
by Lucas
2 days ago
Forum: Archive Google Group
Topic: Reach two different answers in two different versions of GAMS
Replies: 2
Views: 31

Reach two different answers in two different versions of GAMS

Hi all,

I solved a model with two different versions of GAMS. (Version 24.2 and Version 27.3)

The answers I get from Version 24.2 are different from the answers from Version 27.3 !
Is this normal?


Thanks!
by Lucas
2 months ago
Forum: Syntax
Topic: How to compare the two parameters
Replies: 7
Views: 313

Re: How to compare the two parameters

Hi again :D why I had this error? **** Macro Definition error for Macro ISsame: Closing parenthesis missing when I used the Macro facility had that error! so I checked all parenthesis,it was ok, but I had same error again! what's wrong? set i/1*5/; parameter a(i) /1 1,2 0,3 1,4 0,5 0/ b(i) /1 0,2 1,...
by Lucas
2 months ago
Forum: Syntax
Topic: How to compare the two parameters
Replies: 7
Views: 313

Re: How to compare the two parameters

Dear Steve & Renger thanks a lot for your quick and useful answer!
by Lucas
2 months ago
Forum: Syntax
Topic: How to compare the two parameters
Replies: 7
Views: 313

Re: How to compare the two parameters

Hi Renger :) first of all Thanks for your answer! your code is better than me! I want to compare a parameter 'a' more than on time. How to compare 'a' with 'b' then 'a' with 'c' , 'a' with 'd' , 'a' with 'e' , without repeat the following code and change the b(i) to c(i), d(i) and e(i). parameter sa...
by Lucas
2 months ago
Forum: Syntax
Topic: How to compare the two parameters
Replies: 7
Views: 313

How to compare the two parameters

Hi all, How to compare the two parameters (0-1 parameters) together and find out if they are the same or not? I wanted to use the Sameas command but I could not do it. example compare 'a' set i/1*5/ k(i); parameters a(i) /1 1,2 0,3 1,4 0,5 0/ b(i) /1 0,2 1,3 1,4 0,5 0/ c(i) /1 1,2 0,3 1,4 0,5 0/ d(i...
by Lucas
2 months ago
Forum: Archive Google Group
Topic: The way to control total solve time
Replies: 4
Views: 288

Re: The way to control total solve time

Yes! Thanks so much!
by Lucas
2 months ago
Forum: Archive Google Group
Topic: The way to control total solve time
Replies: 4
Views: 288

Re: The way to control total solve time

Hi Renger Thanks a lot!

can I set TimeElapsed<3600?

https://support.gams.com/gams:how_do_i_ ... me_in_gams
by Lucas
2 months ago
Forum: Archive Google Group
Topic: The way to control total solve time
Replies: 4
Views: 288

The way to control total solve time

Hi expertise, In a GAMS file, I have a number of Solve command and the option reslim = 3600 is at the beginning of the program . Need to be given to each solve statements 1 hour time, But the total solve time should not be more than 1 hour.(That is, the total of the time spent for all Solve's comman...
by Lucas
2 months ago
Forum: Bugs
Topic: Debugging in GAMS studio
Replies: 2
Views: 492

Re: Debugging in GAMS studio

Hi Fred ,OK. thanks a lot for your answer and support!