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

User specific CPLEX solver options via config file #262

Closed
OFR-IIASA opened this issue Nov 15, 2019 · 2 comments
Closed

User specific CPLEX solver options via config file #262

OFR-IIASA opened this issue Nov 15, 2019 · 2 comments
Milestone

Comments

@OFR-IIASA
Copy link
Contributor

Currently, cplex solver options can be set either of three ways:

  1. https://message.iiasa.ac.at/en/latest/api.html#module-message_ix.models
    from message_ix.models import DEFAULT_CPLEX_OPTIONS
    DEFAULT_CPLEX_OPTIONS['lpmethod'] = whatever
  2. s = message_ix.Scenario(...)
    s.solve(solve_options={'lpmethod': whatever})

But because both of these need to be called either everytime when loading message_ix or when calling the solve command, the only other way to permanently change the solver options is in the source code directly (option 3). Therefore, it should be possible to provide user specific configurations via a config file.

@khaeru khaeru added the enh New features & functionality label Aug 17, 2020
@khaeru
Copy link
Member

khaeru commented Apr 28, 2022

Closed by #557.

@khaeru khaeru closed this as completed Apr 28, 2022
@khaeru khaeru added this to the 3.5 milestone Apr 28, 2022
@khaeru
Copy link
Member

khaeru commented Apr 28, 2022

This was also a duplicate of #216, I think.

@khaeru khaeru added duplicate and removed enh New features & functionality labels Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants