I am trying to optimize an objective function of a 5D circle
c=[1,2,3,2,1];r=[0,0,0,0,0] % begin from origin
maxRadius=3;fun = @(x) -sqrt(c.*(r+abs(x)).^2); % Negative to make minimal
% Such that:
sqrt(sum(x.^2)) <= maxRadius
I'm getting hung up on the constraint on x… Where can I plug this in to fmincon? is fmincon the appropriate solver for this?
Best Answer