Search found 528 matches

by bussieck
4 hours ago
Forum: Syntax
Topic: $ifthen with $else code block issue
Replies: 4
Views: 185

Re: $ifthen with $else code block issue

Hi,

Your system is >12 years old. The issue has been fixed 10 years ago (GAMS 23.6).

-Michael
by bussieck
1 day ago
Forum: API
Topic: Feedback if GAMS code has been executed successfully
Replies: 5
Views: 227

Re: Feedback if GAMS code has been executed successfully

Put a "echo %errorlevel%" after the gams call (to see GAMS return code) and a "pause" in your cmd script to see what's going on.

-Michael
by bussieck
2 days ago
Forum: API
Topic: Feedback if GAMS code has been executed successfully
Replies: 5
Views: 227

Re: Feedback if GAMS code has been executed successfully

What does the LST file say. That's the prim location to look for compilation errors.
by bussieck
2 days ago
Forum: Announcements
Topic: GAMS Distribution 34.0.0 (Beta Release)
Replies: 0
Views: 53

GAMS Distribution 34.0.0 (Beta Release)

Hi GAMS Users, We would like to announce the availability of the GAMS Beta Release 34.0.0. Please consult the beta release notes for details about new features and updated solvers: https://www.gams.com/beta/docs/RN_34.html If you are interested in experimenting with this beta release, please downloa...
by bussieck
1 week ago
Forum: Tools
Topic: Access Excel file error
Replies: 1
Views: 153

Re: Access Excel file error

This happens when a) Excel has the file open (this can be a crashed Excel) so if the problem disappears after a reboot check the next time for abbandoned Excel processes in your task manager or b) you have not activated MS Office/Excel (see https://support.microsoft.com/en-us/office/activate-office-...
by bussieck
1 week ago
Forum: Solvers
Topic: Parallel processing with CPLEX
Replies: 3
Views: 138

Re: Parallel processing with CPLEX

You heard wrong. Cplex can't use GPUs. There is a distributed B&B version of Cplex and you need a lot of machines to get even with your SMP processor on a single machine. I have not seen a model instance where it really makes (much) of a difference with a home grown network of workers. The guys who ...
by bussieck
3 weeks ago
Forum: Syntax
Topic: index of elements in an unordered subset
Replies: 2
Views: 137

Re: index of elements in an unordered subset

Bahar, This is not possible with a one dimensional set. In GAMS there is only one order, the input label order, so if you have a set i /1*10/, then all sets with these elements will have this natural order. You can work around this by making your subset two-dimensional: set subset(i,i) / 1.4,2.3,3.1...
by bussieck
1 month ago
Forum: Syntax
Topic: Merge input data of a parameter
Replies: 2
Views: 116

Re: Merge input data of a parameter

I would read the five matrices at compile time into different symbols and do the merge at execution time. For 5 matrices there is little need to automate: set i / ... /, j / ... /; parameter d1(i,j), d2(i,j),d3(i,j),d4(i,j); $gdxin d1 $load d1 $gdxin d2 $load d2 ... set m / 1*5 /; parameter d(m,i,j)...
by bussieck
1 month ago
Forum: Syntax
Topic: $ifthen with $else code block issue
Replies: 4
Views: 185

Re: $ifthen with $else code block issue

Andrew, All the pieces look okay to me but without the entire source it is hard to say where the problem is. I can recommend to use $ifThen/$else/$endIf with suffix names. This way the compiler reports things in a better way: $ifThen.label1 cond1 ... $ifThen.label2 cond2 ... $endIf.label2 $else.labe...