Optimization when solving equation system

1 次查看(过去 30 天)
Good evening,
I'm trying to solve the following issue:
Given a vector (n=50 elements), which is expanded in known basis functions and known coefficients according to . I'd like to express v in an alternative known basis with unknown coefficients like . I obtain all coefficients via , in which the basis transformation matrix T follows from solution of the matrix equation with containing the as column vectors. This procedure works perfectly fine so far, with one exception: I'd like to ensure that , so the maximum value of the alternative expansion should never be smaller than the one of the original expansion.
Can this be done by optimization when solving for T in any way in Matlab?

回答(1 个)

Matt J
Matt J 2022-5-27
编辑:Matt J 2022-5-27
fmincon with a nonlinear constraint would probably work, although because your constraint is non-differentiable, strictly speaking the problem doesn't satisfy fmincon's assumptions. It might be worth doing a preliminary step, where you replace your max constraint with,
for some . Then, use that solution as the initial guess when you solve the original problem (which corresponds to).
  2 个评论
dj1du
dj1du 2022-5-28
Thank you very much for your response! I just had a look at the function fmincon, but to be honest I'm not quite sure how to use it. Could you please give a more detailed explanation on its usage or even an example code, which applies to my specific problem?
Matt J
Matt J 2022-5-28
编辑:Matt J 2022-5-28
You would pose this as a constrained minimization problem:
The constraint is nonlinear, and so would be implemented by writing a nonlcon function,

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Nonlinear Optimization 的更多信息

标签

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by