Borrar filtros
Borrar filtros

passing extra parameters in optimization

1 visualización (últimos 30 días)
boureghda mohammed
boureghda mohammed el 22 de Feb. de 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?

Respuestas (0)

Categorías

Más información sobre Problem-Based Optimization Setup en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by