Filter löschen
Filter löschen

How to formalize an optimization problem in Matlab?

1 Ansicht (letzte 30 Tage)
reincornator
reincornator am 3 Mai 2022
Kommentiert: Matt J am 5 Mai 2022
Hello.
How to issue a task in Matlab?
Given:
Vectors a1 and a2.
Find a vector of coefficients x such that:
abs((a2.')*x) -> min
abs ((a1.')*x) >= condition
under the conditions:
- Dimensions of vectors a1, a2 and x from 1 to p
- elements a1, a2 and x are complex numbers
- abs(a1_i)>0, abs(a2_i)>0, abs(x_i) = 1, where i =1..p
  15 Kommentare
reincornator
reincornator am 5 Mai 2022
How to set 2 restrictions in the "fmincon" function?
Matt J
Matt J am 5 Mai 2022
c and ceq can be vectors.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Matt J
Matt J am 4 Mai 2022
Bearbeitet: Matt J am 4 Mai 2022
N=null(a2.');
a3=a1.'*N;
[~,idx]=max(abs(a3));
x=N(:,idx);
  6 Kommentare
reincornator
reincornator am 5 Mai 2022
@Matt J, I found one solution. It is implemented using a special algorithm and shows a good result. But I'm looking for a better way.
Torsten
Torsten am 5 Mai 2022
I thought a2'*x should be 0...

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by