Objective function with array as decision variable

3 visualizaciones (últimos 30 días)
Johan Johan
Johan Johan el 5 de Jul. de 2018
Respondida: Alan Weiss el 6 de Jul. de 2018
if x is a vector of values,
n=10;
x = [0.0001 0.0003 0.0007 0.0020 0.0055 0.0148 ...
0.0403 0.1097 0.2981 0.8103 2.2026];
W(i)=x(i).*exp(-j*n);
I want to write an objective function for this script ,but if x(i) is decision variable how to write this function in matlab ,for help me to applicate any optimization method.
  1 comentario
Torsten
Torsten el 6 de Jul. de 2018
Please explain in more detail what you are trying to do.

Iniciar sesión para comentar.

Respuesta aceptada

Alan Weiss
Alan Weiss el 6 de Jul. de 2018
Perhaps you are looking for something like this.
Alan Weiss
MATLAB mathematical toolbox documentation

Más 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