Issue with setting parameters in Gurobi 11.0

277 views
Skip to first unread message

Alex Cage

unread,
Dec 8, 2023, 1:03:32 AM12/8/23
to YALMIP
Hi, everyone,

Lately I upgraded the Gurobi solver to 11.0. The models are solvable, but when I use the "ops" to set MIP parameters, for example:
'ops = sdpsettings(ops, 'gurobi.Cuts', 0)', or
'ops = sdpsettings(ops, 'gurobi.MIPFocus', 2)'
The following problem comes out:
'Unknown problem in solver (Turn on 'debug' in sdpsettings) (Error using gurobi
     Gurobi error 10008: Unable to set parameter TuneTimeLimit to value -1 (minimum is 0)
     )'
The same settings under Gurobi 10.3 work fine. I use MAC M1 pro and Matlab 2023b (ARM).

My question is how to set these parameters correctively. Thank you.

Johan Löfberg

unread,
Dec 8, 2023, 2:13:39 AM12/8/23
to YALMIP
Yes, they just annoyingly introduced a breaking change in 11.0, so you will have to edit the default value in sdpsettings to make it run unless you manually set it every time

liu xiao

unread,
Apr 7, 2024, 2:26:31 AM4/7/24
to YALMIP
can you have us a example, I face the same issue

Johan Löfberg

unread,
Apr 7, 2024, 10:54:14 AM4/7/24
to YALMIP
easiest is to install the develop branch where it has been fixed. otherwise, just edit sdpsettings and comment out the line related to that setting
Reply all
Reply to author
Forward
0 new messages