Filter löschen
Filter löschen

passing extra parameters in optimization

1 Ansicht (letzte 30 Tage)
boureghda mohammed
boureghda mohammed am 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?

Antworten (0)

Kategorien

Mehr zu Problem-Based Optimization Setup finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by