maximizing multiple quadratic functions

I have multiple quadratic functions that I need to maximize subject to linear constraints. How can I do that in matlab. The problem is like this: Maximize: x1^2 + x2^2+...+xn^2
y1^2+y2^2+...+yn^2
z1^2+z2^2+...+zn^2 ............... subject to: F(x1,x2,...,y1,y2,..., z1,z2,...)<=1
G(x1,x2,...,y1,y2,...,z1,z2,....)=0
Where F and G are linear functions.

回答 (1 件)

Matt J
Matt J 2018 年 1 月 30 日

0 投票

Just call quadprog() multiple times.

8 件のコメント

Maher
Maher 2018 年 1 月 30 日
I think quadprog() for convex functions and the functions here are nonconvex,but I can call fmincon. However how to call it multiple times? I write a loop, the variables are intermixing in the constraints function. Many thanks!
Matt J
Matt J 2018 年 1 月 30 日
編集済み: Matt J 2018 年 1 月 30 日
You only have 3 objective functions. Just call it manually 3 times. No need for a loop.
Intermixing? They intermix in the objective function as well. Just assign zero coefficients to variables that don't participate in the objective function, e.g.,
objective = x1^2+x2^2 +0*y1^2 +0*y2^2
Maher
Maher 2018 年 1 月 30 日
Thank you!I'll do that and update you!
Matt J
Matt J 2018 年 1 月 30 日
You're welcome. If it solve the problem, though, please Accept-click the answer.
Maher
Maher 2018 年 1 月 31 日
unfortunately it didn't work.
Torsten
Torsten 2018 年 1 月 31 日
Details ?
Maher
Maher 2018 年 1 月 31 日
I didn't get a vector that attains a maximum value
Torsten
Torsten 2018 年 1 月 31 日
More details ? Code, e.g. ?

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeQuadratic Programming and Cone Programming についてさらに検索

質問済み:

2018 年 1 月 30 日

コメント済み:

2018 年 1 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by