passing extra parameters in optimization

2 visualizzazioni (ultimi 30 giorni)
boureghda mohammed
boureghda mohammed il 22 Feb 2017
If my objective run simple operation and also call other sub-functions and each sub-function has own parameters and may be they can share some parameters the following example is a view to how look like my objective function :
function y = MyObjFun(.)
some simple operation that need variables that do not change during the optimization.
a = x1+x2;
y1 = sub-function1(a,b,c);
y2 = sub-function2(b,d,e)
.
.
.
ym = sub-functionm(m,n)
y = y1+y2+y3ym;
what is the best way to write my objective function and passe these parameters?

Risposte (0)

Categorie

Scopri di più su Problem-Based Optimization Setup in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by