Search found 4 matches

by ALe
4 years ago
Forum: Modeling
Topic: assigning specific elements to a subset from a set.
Replies: 2
Views: 2226

Re: assigning specific elements to a subset from a set.

One possibility is to filter with ORD expressions (assuming the set AllPeriod is ordered):

Code: Select all

Period(AllPeriod)$((ord(AllPeriod)>10)$(ord(AllPeriod)<card(AllPeriod)-9))=yes;
by ALe
4 years ago
Forum: Modeling
Topic: Connecting GAMS 28.1.0 to neos server
Replies: 3
Views: 3310

Re: Connecting GAMS 28.1.0 to neos server

Try adding a solve statement at the bottom; I tried the following and it worked here:

Code: Select all

solve sequence min totwait using mip;
by ALe
4 years ago
Forum: Bugs
Topic: Crash with GAMS v28.1 (x64)
Replies: 2
Views: 11242

Crash with GAMS v28.1 (x64)

The tiny GAMS program below (meaningless as such, only purpose is to reproduce the problem) causes a fully reproducible crash in GAMS v28.1 (discovered by a colleague, while trying my GAMS code). However, all earlier versions seem to work well with it, as I think should be the case. Can anyone expla...
by ALe
6 years ago
Forum: Syntax
Topic: The .fx variable attribute: Dumb question
Replies: 1
Views: 4488

The .fx variable attribute: Dumb question

The description for the .fx variable attribute is given as follows: ------- Gams UsersGuide: .fx : The fixed value for the variable. GAMS allows the user to set variables through the .fx variable suffix. This is equivalent to the lower bound and upper bound being equal to the fixed value. Fixed variabl...