Code covered by the BSD License
 Electron Problem Optimiza...
 First Order Reliability M...
 computebestportfolioPCT(e...Oren Rosen
 crossoverNcK(parents,opti...Oren Rosen
 flutterLimitFunction(X,mo...Calcualte Flutter Limit Function
 generateinitpopNcK(n,k)
Oren Rosen
 make2plots(X1, Y1, Y2)
CREATEFIGURE1(X1,Y1,Y2)
 minvar(covMat,indvRet,tar...Oren Rosen
 motorController(p,u,v)
Controller design function.
 motorDesign(x,a,b)
DC Motor design function
 motorOptimizationTask(z,a...Copyright 2010 The MathWorks, Inc.
 motorSystem(x,a,u,alpha)
Motor system design function, couples motor design with conrtrol design
 mutationNcK(parents,optio...Oren Rosen
 myCostFcnRR(x,simParms)
Run Simulink model
 myNonlConRR(x,simParms)
Copyright 2010 The MathWorks, Inc.
 nlConstraint(x)
Copyright 2010 The MathWorks, Inc.
 nonlinConstraint(u,Gx,Tinv)
Nonlinear Constratint Function for FORM
 plotElectron.m
 rrDesignParallel(nRuns)
Copyright 2010 The MathWorks, Inc.
 runSimModel(x,simParms,ii)
Copyright 2010 The MathWorks, Inc.
 struct2var(s)
STRUCT2VAR Convert structure array to workspace variables.
 sumInvDist(x)
Copyright 2010 The MathWorks, Inc.
 DemoGAwPCT.mParallelization of GA Portfoilio Optimization Problem
 electronProblemScript.m
 optimMotorDesign.mDC Motor Design Optimization Demo
 optimSuspensionScript.mUserDefined Parallel Optimization Problem
 setup.mTurn of warnings
 Flutter
 Flutter_noAnimation
 mldemo_suspnfast

View all files
Speeding Up Optimization Problems with Parallel Computing
by
Stuart Kozola
16 Aug 2010
Files from the webinar: Speeding up optimization problems with parallel computing

electronProblemScript.m 
%% Electron Optimization Problem
% This example illustrates how to formulate and solve an optimization
% problem in MATLAB. Consider N electrons in a conducting body.
% The electrons arrange themselves to minimize their potential energy
% subject to the constraint of lying inside the conducting body. At the
% minimum total potential energy, all the electrons lie on the boundary of
% the body. Because the electrons are indistinguishable, there is no unique
% minimum for this problem (permuting the electrons in one solution gives
% another valid solution).
%
% The optimization goal is to minimize the total potential energy of the
% electrons subject to the constraint that the electrons remain within the
% conducting body. The objective function, potential energy, is the sum of
% the inverses of the distances between each electron pair (i,j = 1, 2, 3,
% N)
%
% This problem can be solved with the nonlinear constrained solver fmincon
% in Optimization Toolbox. To use the parallel computing capability in
% Optimization Toolbox, we use the check box available in the Optimtool
% GUI and open a matlabpool.
% Copyright 2010 The MathWorks, Inc.
%% Loading in settings and variables for the problem
load('electronProblem.mat')
%% Opening Optimtool (GUI in Optimization Toolbox)
optimtool(electronProblem)


Contact us