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

Setting solver option in Jump #541

Closed
Smaz89 opened this issue Aug 20, 2015 · 2 comments
Closed

Setting solver option in Jump #541

Smaz89 opened this issue Aug 20, 2015 · 2 comments

Comments

@Smaz89
Copy link

Smaz89 commented Aug 20, 2015

Hi all,

I'm trying to write my first optimization code using JuMP, after years passed on AMPL. I am not able to set solver options as time limit and solution tolerance; setting also a real-time updating of the solution (with actual solution upper bounds) would be useful for me.

Can anyone give me an hint?

P.s. I usually use GLPK and Gurobi as solvers

@mlubin
Copy link
Member

mlubin commented Aug 20, 2015

Hi @Smaz89. You can set solver options by tacking them onto the solver object:
https://github.com/JuliaOpt/GLPKMathProgInterface.jl

GLPKSolverLP(method=:Exact, presolve=true, msg_lev=GLPK.MSG_ON)

https://github.com/JuliaOpt/Gurobi.jl

GurobiSolver(Method=1, IterationLimit=100.)

The gurobi options match those in the gurobi documentation.

@mlubin
Copy link
Member

mlubin commented Aug 25, 2015

@Smaz89, feel free to ask any follow up questions on the julia-opt forum.

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

No branches or pull requests

2 participants