Hello,
I'm a beginner of yalmip and I hope that you can spare your valuable time to help me solve the problem.
Recently,I am writing an objective function which contains function int() which is attached below:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
p=sdpvar(1,1);
syms x
Objective=int(p*x,x,1,2);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
and the problem is:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Error using sdpvar/subsref (line 180)
Undefined function 'any' for input arguments of type 'sym'.
Error in coefficients (line 60)
allvar = depends(p(i));
Error in int_sdpvar (line 15)
[c,v] = coefficients(f,x(i));
Error in sdpvar/int (line 33)
F = int_sdpvar(f,x,from,to);
Error in ED3_analysis (line 64)
Objective=int(p*x,x,1,2);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I have spent a lot of time but still can't figure it out.
Thanks in advance,
Polly