Error while using gurobi with yalmip

28 views
Skip to first unread message

Sudheer Reddy boggadi

unread,
Jul 29, 2025, 8:05:25 AMJul 29
to YALMIP
Hi Prof. Johan,

I have a working code in matlab R2022A and it is working fine. When I add the same code to newer versions the options of using gurobi is making issue. I used the following SDP settings which is making the issue here.

options = sdpsettings('solver', 'gurobi', 'verbose', 1, 'showprogress',1, 'debug',1, 'gurobi.timelimit',36000, 'gurobi.MIPgap',0.1);

I am getting the following error.

Error using gurobi
Gurobi error 10008: Unable to set parameter TuneTimeLimit to value -1 (minimum is 0)


Error in callgurobi (line 20)
result = gurobi(model,model.params);

Error in solvesdp (line 420)
    eval(['output = ' solver.call '(interfacedata);']);

Error in optimize (line 31)
[varargout{1:nargout}] = solvesdp(varargin{:});

Please let me know how to resolve this issue.

Regards,
Sudheer.

Johan Löfberg

unread,
Jul 29, 2025, 8:47:43 AMJul 29
to YALMIP
I think you are using an old version of YALMIP

Sudheer Reddy boggadi

unread,
Jul 29, 2025, 10:24:14 AMJul 29
to YALMIP
I just downloaded YALMIP from your website before running the simulations and got this error. I tried in different matlab versions and it is occuring for matlab versions above R2022A.

Johan Löfberg

unread,
Jul 29, 2025, 10:44:40 AMJul 29
to YALMIP
That sounds impossible. What does the following return

>> dbtype 905 sdpsettings

Sudheer Reddy boggadi

unread,
Jul 29, 2025, 10:50:05 AMJul 29
to YALMIP
905   % gurobi.ComputeServer = '';

Johan Löfberg

unread,
Jul 29, 2025, 11:13:09 AMJul 29
to YALMIP

Sudheer Reddy boggadi

unread,
Jul 29, 2025, 11:43:43 AMJul 29
to YALMIP
I just changed that line in sdpsettings file. It is working now. Thank you for the support

Johan Löfberg

unread,
Jul 29, 2025, 11:45:13 AMJul 29
to YALMIP
You should not have to change anything. You should figure out why you are still running an old version
Reply all
Reply to author
Forward
0 new messages