GAMS executable not found! - JuMP

Hi,

I would like to use the GAMS Optimizer for my JuMP/Julia model. I have installed the GAMS package correctly using GAMS and it is updated however, when I want to use it as an optimizer
as follows

model_name = Model(GAMS.Optimizer)

It returns the following error:

GAMS executable not found!

Stacktrace:
[1] error(::String) at .\error.jl:33
[2] GAMSWorkspace() at C:\Users\glmab.julia\packages\GAMS\P8cZ5\src\GAMS.jl:226
[3] GAMS.Optimizer() at C:\Users\glmab.julia\packages\GAMS\P8cZ5\src\MOI_wrapper\MOI_wrapper.jl:115
[4] _instantiate_and_check(::Type{T} where T) at C:\Users\glmab.julia\packages\MathOptInterface\ZJFKw\src\instantiate.jl:56
[5] instantiate(::Type{T} where T; with_bridge_type::Type{Float64}, with_names::Bool) at C:\Users\glmab.julia\packages\MathOptInterface\ZJFKw\src\instantiate.jl:107
[6] set_optimizer(::Model, ::Type{T} where T; bridge_constraints::Bool) at C:\Users\glmab.julia\packages\JuMP\y5vgk\src\optimizer_interface.jl:75
[7] Model(::Type{T} where T; bridge_constraints::Bool, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at C:\Users\glmab.julia\packages\JuMP\y5vgk\src\JuMP.jl:235
[8] Model(::Type{T} where T) at C:\Users\glmab.julia\packages\JuMP\y5vgk\src\JuMP.jl:234
[9] top-level scope at In[12]:1
[10] include_string(::Function, ::Module, ::String, ::String) at .\loading.jl:1091

Hope someone can assist in this regard

Here are the install instructions: https://github.com/GAMS-dev/gams.jl#installation

@renkekuhlmann (If they’re on discourse.) should be able to help.

Otherwise, contact GAMS support or open an issue in gams.jl so they can improve the install instructions.

The Julia package also requires an installed and configured GAMS distribution. You can get a trial copy here.

1 Like