Search found 1038 matches
- 1 day ago
- Forum: Syntax
- Topic: Connecting ordered sets
- Replies: 1
- Views: 759
Re: Connecting ordered sets
If you need the previous "period" in your model, you should think in terms single dimension time periods rather than (y,d,t) tuples and model with this. If you need occasionally access to data of a particular year, date, hour of a period you can do this by mapping from the period to the y,...
- 1 week ago
- Forum: Modeling
- Topic: Nonlinear Programming/ Steiner Weber Modell with barriers
- Replies: 1
- Views: 744
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: 915
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: 623
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: 1254
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: 920
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: 2527
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: 1944
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: 10067
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...