Crash with GAMS v28.1 (x64)

Post Reply
ALe
User
User
Posts: 3
Joined: 1 year ago

Crash with GAMS v28.1 (x64)

Post by ALe » 1 week ago

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 explain why the new version crashes? Hopefully the earlier well-working status will be restored for such GAMS constructs.
crash-example.gms
Crash Example
(959 Bytes) Downloaded 9 times
*---------------------------------------------------------------------------------------
$offlisting
$onempty

SETS
s hours /H01*H24/
lim /lo,up,fx,n/
bd(lim) bound /lo,up,fx/
bdneq(lim) /lo,up/
;

ALIAS (s, ts, sl);

PARAMETERS
win_time time window //
hours(s) timeslice hour //
cost_puts(s) cost of putsing //
winscost cost on winsing /1/
;

cost_puts(s)=4;
hours(s)=ord(s)-0.5;
win_time=4;

POSITIVE VARIABLES
var_puts(s) putty
var_wins(s,bd) winsing
;

FREE VARIABLES
Objz objective variable
;

EQUATIONS
eq_obj objective function
eq_win winning
;

eq_obj.. Objz =e= sum(s, cost_puts(s)*var_puts(s)+winscost*sum(bdneq(bd),var_wins(s,bd)));

eq_win(s)..

sum(bd,var_wins(s,bd)) =e=
sum(ts(sl--1)$(mod(hours(s)-hours(sl)+0.5+24,24)<win_time),var_puts(sl)+var_wins(sl,'up')-var_wins(ts,'up'));

model test/
eq_obj
eq_win
/;

solve test min objz using lp;
*---------------------------------------------------------------------------------------
Thank you.

User avatar
bussieck
Moderator
Moderator
Posts: 340
Joined: 2 years ago

Re: Crash with GAMS v28.1 (x64)

Post by bussieck » 1 week ago

This is pretty embarrassing. Thanks for taking the time to make a small and reproducible example. The crash is likely to be related to some speed improvements in the model generation. We will look into this and fix this ASAP.

-Michael

User avatar
bussieck
Moderator
Moderator
Posts: 340
Joined: 2 years ago

Re: Crash with GAMS v28.1 (x64)

Post by bussieck » 4 days ago

This has been fixed in GAMS 28.2.0.

-Michael

Post Reply