I have an optimization problem and would like to define a nonlinear constraint in the function provided for it (unitdisc).Unfortunately I am unable to transfer the variables as input or globally. Do you have any tips for solving this problem. It looks like this for me:
e = @(x) transpose((xd * x) + xc) * x;
nonlcon = @unitdisc;
problem = createOptimProblem('fmincon','objective',e,'x0',Initv,'lb',lb,...
[x] = run(gs,problem);
function [c,ceq] = unitdiscc(x,a,b,c,d...