Tree limit JuMP 0.21

I am modeling an optimization problem within Julia/Atom and CPLEX. I need to control the tree limit size. What is the syntax for the tree limit in JuMP 0.21? Thanks in advance, Bruno

You will need to set the appropriate solve option via

set_optimizer_attribute(model, "<OPTION_NAME>", limit)

Just to complement, this depends on the solver you are using, and different from some options like verbose/quiet that JuMP implements a generic way of setting it for any solver, this does not have a generic way of setting (because probably not all solvers implement it).

1 Like