GAMS-dev / gams.jl

A MathOptInterface Optimizer to solve JuMP models using GAMS
MIT License
34 stars 3 forks source link

GAMS doesn't recognize "acos" #8

Closed Jovansam closed 3 years ago

Jovansam commented 3 years ago

Hi, GAMS.jl has a problem with 'acos'. In GAMS (as opposed to Julia-JuMP) it is called arccos. Might there be a translation problem? See problem line:

    @NLexpression(DPVI, V̂[i=SN, j=Sdeg], coefs[j] * cos((j - 1) * acos(dz * (kPlus[i] - extkmin) - 1)) )
renkekuhlmann commented 3 years ago

Absolutely! Thanks for reporting this issue. Will be fixed shortly.

renkekuhlmann commented 3 years ago

Has been fixed with GAMS.jl version 0.2.2 (available in package manager very soon). Also added support of asin, atan, mod and sign. Thanks again for pointing out this issue!