BARON logsumexp error

18 views
Skip to first unread message

Aras

unread,
Apr 26, 2019, 8:04:50 PM4/26/19
to YALMIP
Hi Everyone, and Dr. Lofberg,

I am running the following:
x = sdpvar(n,1);
Constraints = [D*x <= d, x>=0 ];
Obj = logsumexp(A*x);
P = optimize(Constraints, -Obj, sdpsettings('debug',1,'solver', 'baron'));


and getting the following error(s) due to the usage of logsumexp (which was not an issue with KNITRO or IPOPT):

Error using baron
There was an error evaluating a user supplied function. Please examine the below error and correct your function.

Error using "logsumexp" (line 47)
SDPVAR/LOG called with CHAR argument?

Error Trace:
- Error in "@(x)-1*logsumexp(x(21))" (line 0)
- Error in "baron" (line 0)
- Error in "baron" (line 0)
- Error in "baron" (line 0)
- Error in "baron" (line 0)
- Error in "callbaron" (line 85)
- Error in "solvesdp" (line 350)
- Error in "optimize" (line 31)
- Error in "Ipopt" (line 10)


Error in callbaron (line 85)
[x,fval,exitflag,info,allsol] = baron(obj,A,rl,ru,lb,ub,con,cl,cu,xtype,x0,opts);

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

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

Error in Ipopt (line 10)
P = optimize(Constraints, -Obj, sdpsettings('debug',1,'solver', 'baron'));

Is this due to Yalmip, or am I doing some big mistake? 

Thank you!

Johan Löfberg

unread,
Apr 27, 2019, 2:36:03 AM4/27/19
to YALMIP
True, fixed and pushed to develop branch

Aras

unread,
Apr 27, 2019, 4:51:33 PM4/27/19
to YALMIP
does 'develop' mean I can fix this if I re-install yalmip latest version? Thanks!

Aras

unread,
Apr 27, 2019, 4:53:44 PM4/27/19
to YALMIP
Because I installed Yalmip again and it is not fixed. Most probably I need to do more..

Aras

unread,
Apr 27, 2019, 5:13:15 PM4/27/19
to YALMIP
Installed the same from https://github.com/yalmip/YALMIP/tree/develop

Now it works.

Many thanks!
Reply all
Reply to author
Forward
0 new messages