-
Notifications
You must be signed in to change notification settings - Fork 490
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
Solver options for scip using pyomo #48
Comments
Please see the online documentation for setting solver options: In general you can specify any option a solver accepts, you just have to make sure you are setting the appropriate option name for a particular solver. |
I get the following error if I try running the command
I've been able to add a mipgap with glpk and gurobi, but not scip |
Our solver plugin to SCIP uses the ASL interface. You need to have the scipampl executable built, and you need to be using option names that are available through that interface. You can see the list of available options for most ASL based solvers using a command like: scipampl -= Gabe
|
This post seems to suggest that scipampl does not support solver options. And when I run
|
According to this post, another way to set options is to write a 'scip.set' file and specify options using the scip parameter names. Just make sure this file is in the same directory as your model file. I'm pretty sure there is a way to set the options directly from the Pyomo command line but this might be a good work around in the meantime. It also might be a better solution if you plan on changing many of the options or repeatedly specifying certain options. |
Great! That works. However, (as I understand it) this will not work if I want to do the following, is that correct?
|
It should work in that case as well. I've never tried it with scip but I've done the exact same thing with an ipopt options file. |
If SCIP doesn't accept command-line options like other solvers compiled against ASL, we should consider writing this file for the user. The current SCIP plugin is simply going to confuse people if setting any options on the solver plugin just causes the solver to fail (because we try to set them on the command-line). This also brings up the question of whether or not we should do the same thing for Ipopt. I know that the set of options exposed through the command-line for the Ipopt executable is a subset of the options that can be set using an options file (some of the options have different names as well). I think it would make a lot of sense to make the full set of options available to the user through Pyomo. This would involve creating a very lightweight Ipopt solver plugin that changes how the solver options are handled. On the other hand, I know many users that expect the options file to work independent of Pyomo, so this might break their workflow. @carldlaird: What do you think? |
I like this suggestion. Add a ticket! On Wed, Sep 28, 2016 at 7:51 PM, Gabriel Hackebeil <notifications@github.com
|
…ll check for options starting with 'OF_' and, if any are found, write them to an Ipopt options file in a temporary location and set the option_file_name command-line option (somewhat related to discussion in #48). A warning is printed when this will cause an existing 'ipopt.opt' file in the current working directory to be ignored.
I was wondering if there was any way to set solver options such as mipgap for scip. This is a list of all the parameters that scip accepts.
The text was updated successfully, but these errors were encountered: