Search found 1037 matches
- 1 week ago
- Forum: Modeling
- Topic: Nonlinear Programming/ Steiner Weber Modell with barriers
- Replies: 1
- Views: 721
Re: Nonlinear Programming/ Steiner Weber Modell with barriers
This is a straight forward text book optimization problem. Get the math straight and GAMS will follow. If you have detailed questions on how to to particular formulations or tasks in GAMS you will find answers here. Getting the math right is the whole fun and you should not shortcut this experience....
Re: Erorr 149
What i should GAMS use for the s(i)? The control of i stops with the sum. The equation is controlled over j.
-Michael
-Michael
- 2 weeks ago
- Forum: Syntax
- Topic: A problem with parentheses
- Replies: 3
- Views: 891
Re: A problem with parentheses
Not sure what editor you used, but GAMS does not like your "≤" nor the "∗". These are unicode characters not part of the GAMS language, hence the compiler gets confused. Just use the regular ASCII characters/character sequence "<=" and "*".
-Michael
-Michael
- 2 weeks ago
- Forum: Syntax
- Topic: $ifThen set X or Y
- Replies: 2
- Views: 605
Re: $ifThen set X or Y
No, the "$if set" only works on a single compile time variable name, not an expression. You can work around this by having a parallel set of numerical compile time variables and then use $ifThenE: $set xset 0 $if set x $set xset 1 $set yset 0 $if set y $set yset 1 $log %xset%%yset% $ifThen...
- 1 month ago
- Forum: Announcements
- Topic: GAMS Distribution 46.1.0 (Major Release)
- Replies: 0
- Views: 1232
GAMS Distribution 46.1.0 (Major Release)
Hi GAMS Users,
We started distributing GAMS Release 46.1.0 on February 21, 2024.
You can download the software from https://www.gams.com/download/
Here are the release notes: https://www.gams.com/latest/docs/RN_46.html
Your GAMS Team
www.gams.com
We started distributing GAMS Release 46.1.0 on February 21, 2024.
You can download the software from https://www.gams.com/download/
Here are the release notes: https://www.gams.com/latest/docs/RN_46.html
Your GAMS Team
www.gams.com
- 2 months ago
- Forum: Announcements
- Topic: GAMS Distribution 46.0.0 (Beta Release)
- Replies: 0
- Views: 906
GAMS Distribution 46.0.0 (Beta Release)
Hi GAMS Users, We would like to announce the availability of the GAMS Beta Release 46.0.0. Please consult the beta release notes for details about new features and updated solvers: https://www.gams.com/beta/docs/RN_46.html If you are interested in experimenting with this beta release, please downloa...
- 3 months ago
- Forum: Solvers
- Topic: BARON solver cannot handle the "Sign" function
- Replies: 2
- Views: 2508
Re: BARON solver cannot handle the "Sign" function
BARON only "understands" a subset of functions offered by GAMS. BARON, unlike local solvers like Conopt, need the algebra of the non-linear expression to build (linear) underestimators. It can do that for all operators (*,/,**,+,-) but not for all functions. The trig functions sin, cos, ta...
- 3 months ago
- Forum: Syntax
- Topic: SOS1 variable modelling
- Replies: 2
- Views: 1924
Re: SOS1 variable modelling
GAMS defines the membership of a variable to a SOS set by the last index in the SOS variable declaration. As a consequence of this you can't have a variable appear in two SOS sets. Your model has this (e.g. W(T2,2,U1) shows up in the first and second SOS set in your example). I have not seen models ...
- 3 months ago
- Forum: Solvers
- Topic: Issue of dual from energy/reserves balance constraint in optimization model
- Replies: 2
- Views: 10051
Re: Issue of dual from energy/reserves balance constraint in optimization model
In an LP there is no such thing as bounds on the dual. It is not unusal to get different dual solution with different solvers. With LPs you can have different optimal basis with different (primal and) dual solutions. Uniqueness in the optimal solution is very rare in practical models. If you want mo...
- 3 months ago
- Forum: Modeling
- Topic: GAMSPy model building
- Replies: 6
- Views: 16780
Re: GAMSPy model building
Thanks for sharing the code. The trouble is that the description of set "impact" had some funny characters which don't show when you look at the file in github ("impact categories like EUR or USD, CO 2 − eq") but do when you check this out on Windows and look at it in e.g. notepa...