Function to optimize doesn't converge in conjugate gradient and quasi newton

1 ビュー (過去 30 日間)
farzad
farzad 2021 年 3 月 29 日
コメント済み: farzad 2021 年 4 月 1 日
Hi all
I have a function as :
f(x) = x1^2 + x2^2 + 2x3^2 - x4^2 - 5x1 - 5x2 -21x3 + 7x4 +100
subject to
x1^2 + x2 ^2+x3 ^2 +x4 ^2 +x1-x2+x3-x4 - 100 <= 0
x1 ^2+2 x2 ^2+ x3^2+ 2 x^4 - x1 - x4 -10 <= 0
2x1 ^2 + x2 ^2 + x3^2 + 2x1 - x2 - x4 - 5 <=0
-100 <= xi <= 100 , i = 1,2,3,4
I tried with quasi newton and Conjugate gradient, but I don't succeed.
How could I improve it and what is the problem ? I attached my codes too
  10 件のコメント
farzad
farzad 2021 年 4 月 1 日
Since it converges without the boundaries with a certain step size I thought it's due to the boundaries

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

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by