Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Pass 'Equilibrium' Keyword to Solver in GAMS.jl for Equilibrium Problem #24

Closed
mcwaga opened this issue Nov 7, 2023 · 3 comments

Comments

@mcwaga
Copy link

mcwaga commented Nov 7, 2023

Problem

I am trying to solve an equilibrium problem using the GAMS/EMP with GAMS.jl in Julia. I am encountering an issue where I am unable to pass the 'Equilibrium' keyword to the solver.

Environment

  • Julia version: 1.9.0
  • GAMS.jl version: 0.4.2
  • Operating System: macOS Sonoma

Expected Behavior

I expect to be able to specify the 'Equilibrium' keyword either within the GAMS model file or via the GAMS.jl interface to inform the solver that it should handle the problem as an equilibrium problem.

@renkekuhlmann
Copy link
Member

Sorry, but EMP is currently not supported by the interface. The only workaround I see at the moment is to write the EMP info file yourself and put it into the working directory. You can query the working directory by calling get_optimizer_attribute(model, "WorkDir") or set it to something non-temporary by set_optimizer_attribute(model, "WorkDir", <path/to/workdir>). However, it will be difficult as the model that is written to this working directory (and then solved) by GAMS.jl is a scalar model and may look very differently to what you have specified via the JuMP interface. Does this work for you or are you experiencing further issues with this approach?

@mcwaga
Copy link
Author

mcwaga commented Nov 23, 2023 via email

@renkekuhlmann
Copy link
Member

Okay, sorry that there is no better solution for this at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants