How to formalize an optimization problem in Matlab?

1 次查看(过去 30 天)
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 个评论

请先登录,再进行评论。

回答(1 个)

Matt J
Matt J 2022-5-4
编辑:Matt J 2022-5-4
N=null(a2.');
a3=a1.'*N;
[~,idx]=max(abs(a3));
x=N(:,idx);
  6 个评论
reincornator
reincornator 2022-5-5
@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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by