Matrix equation as constraint

Hi there,
How should I write this equation as a constraint?
Many thanks.

4 Commenti

Walter Roberson
Walter Roberson il 18 Dic 2022
Modificato: Walter Roberson il 18 Dic 2022
I think you would have to use nonlinear constraints for that if you are using fmincon directly.
Benj D
Benj D il 18 Dic 2022
Thank you. But then the gradient function for each equation would be a constant. I don't know... it's weird to me.
That is not obvious to me? Could you expland on that?
Benj D
Benj D il 18 Dic 2022
I was going to explain, but the question has been answered. Thank you anyway.

Accedi per commentare.

 Risposta accettata

Torsten
Torsten il 18 Dic 2022
Modificato: Torsten il 18 Dic 2022
Here are the constraints to be put in Aeq and beq if you use "fmincon".
n = 5;
p = 3;
A = sym('A',[n,p]);
X = sym('X',[n,p]);
eqn = A.'*X + X.'*A == 0;
[Aeq,beq] = equationsToMatrix(eqn(:),X)
Aeq = 
beq = 

Più risposte (0)

Richiesto:

il 18 Dic 2022

Commentato:

il 18 Dic 2022

Community Treasure Hunt

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

Start Hunting!

Translated by