Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

tranlsate a matriciel expression in matlab language

1 visualización (últimos 30 días)
tilfani oussama
tilfani oussama el 28 de Nov. de 2018
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I have the following equation, wich can be writted in matrciel form as :
R= w'C + w'βRm where Rm is a scalar, w C and β are column vector of n elements, this may be expressed as
R= wici + βiRm equation 1
The second equation can be expressed in matriciel form as:
S= w’Σw equation 2 where Σ is (n,n) matrix
and i have a constraint equation 3
I would like to write equations 1, 2 and 3 in matlab expression, i request help for that.

Respuestas (1)

Torsten
Torsten el 28 de Nov. de 2018
Editada: Torsten el 28 de Nov. de 2018
R = w.'*C + Rm*w.'*beta;
S = w.'*Sigma*w;
eqn3 = sum(w)-1.0;
  2 comentarios
tilfani oussama
tilfani oussama el 28 de Nov. de 2018
this is not a matricial expression of the problem? it is possible to express them analitically, as i will use them in optimization procedure which requires to write objective functions analytically.
Torsten
Torsten el 28 de Nov. de 2018
I don't understand what you mean.
obj=@(w) w.'*Sigma*w + w.'*C + Rm*w.'*beta
works. e.g. to define the objective function if Sigma, C, Rm and beta are defined beforehand.

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by