Objective function with 1,000 variables

2 visualizzazioni (ultimi 30 giorni)
Heborvi
Heborvi il 28 Set 2015
Risposto: Walter Roberson il 28 Set 2015
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.

Risposte (1)

Walter Roberson
Walter Roberson il 28 Set 2015
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);

Categorie

Scopri di più su System Composer in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by