Code covered by the BSD License  

Highlights from
Speeding Up Optimization Problems with Parallel Computing

image thumbnail

Speeding Up Optimization Problems with Parallel Computing

by

Stuart Kozola

 

Files from the webinar: Speeding up optimization problems with parallel computing

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

nlConstraint(x)
function [c,ceq] = nlConstraint(x)

% Copyright 2010 The MathWorks, Inc.

E = length(x)/3;
% inequality constraint
c = zeros(E,1);
i = 1:E;
c = (x(3*i-2).^2 + x(3*i-1).^2 + (x(3*i)+1).^2 - 1).';
% equality constraint (none)
ceq = [];
end

Contact us