Objective function with array as decision variable

3 次查看(过去 30 天)
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.

采纳的回答

Alan Weiss
Alan Weiss 2018-7-6
Perhaps you are looking for something like this.
Alan Weiss
MATLAB mathematical toolbox documentation

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Problem-Based Optimization Setup 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by