I want to run a model written in Pyomo language with CPLEX solver of GAMS. However I get the following error:
"No 'gams' command found on system PATH - GAMS shell" NameError: No 'gams' command found on system PATH - GAMS shell solver functionality is not available. "
I have added the folder (C:\GAMS\win64\25.1) to environmental variables of system. Pyomo version is 5.6.5. Python is 3.5.2. and GAMS is 25.1.2
I would be grateful if you could provide me with help.
solvername = 'gams' opt = SolverFactory(solvername) results = opt.solve( instance, solver='cplex', keepfiles=True, tee=True)