Objective function with array as decision variable

조회 수: 3 (최근 30일)
Johan Johan
Johan Johan 2018년 7월 5일
답변: Alan Weiss 2018년 7월 6일
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
Torsten
Torsten 2018년 7월 6일
Please explain in more detail what you are trying to do.

댓글을 달려면 로그인하십시오.

채택된 답변

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