Function Vectorizing using matlab

1 visualización (últimos 30 días)
imed NASRI
imed NASRI el 7 de En. de 2014
Comentada: Matt J el 7 de En. de 2014
How can I vectorize the following function:
y=sum(u(1:5))+5*min(0,bineq(1)-Aineq(1,:)*transpose(u(1:9)))^2+6*min(0,bineq(2)-Aineq(2,:)*transpose(u(1:9)))^2;
such that u is a (1x9) row vector, bineq is a (2x1) column vector and Aineq is a (2x9) matrix. Thanks.
  1 comentario
Matt J
Matt J el 7 de En. de 2014
It looks like it is vectorized. All operations on the RHS that I see are vector operations.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Data Types en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by