I Just want to use YALMIP for solving the Jacobian matrix and hessian matrix,
my programs are as follow:
un=5;
A=[1 2 3 4 5]';
B=[5 6 7 8 9]';
C=[3 4 6 7 8]';
P=sdpvar(un,1);
object=sum(A.*P.*P+B.*P+C);
sdisplay(jacobian(object,P))
sdisplay(hessian(object,P))
where 'un' is unknown to us unless the programs start run.
Symbolic is good but i want the jacobian(object,P) where P=[1,2,3,4,5]
I try to use assign but failed,It seems it cannot assign a vector
and how can i archive that?