Objective function with 1,000 variables

2 ビュー (過去 30 日間)
Heborvi
Heborvi 2015 年 9 月 28 日
回答済み: Walter Roberson 2015 年 9 月 28 日
Hello, I want to write an objective function which is composed of 1,000 variables. Can someone help me to do this. (My objective function is the following: r1+r2+...+r1000). Thank in advance. Hiba.

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 9 月 28 日
Assuming that your coefficients are presented as row vectors, and that you might have multiple rows representing different locations being sampled:
objfun = @(x) sum(x,2);

カテゴリ

Help Center および File ExchangeSystem Composer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by