Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Gradients for nonlinear optimization constraints

1 回表示 (過去 30 日間)
Leon Stolp
Leon Stolp 2020 年 5 月 17 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello,
I'm currently getting into gradients for constraints of nonlinear optimization and I have some struggle to understand it.
I have the Problem, that my optimization tends to turn to not feasible results. I want to solve that with gradients for my constraints, which are pretty strict. My optimization contains 10 variables, I have one inequality and two equality constraints. None of the constraints is limiting all of the variables directly.
I have a hard time getting my head around WHY the gradient in my case must have the size 10x1/ 10x2 and how I need to set them to work properly. I mean I can't get a deriative for a variable thats not in the formula?! Do I just pass in an empty vector for that specific deriative?
I'm really not sure If im just thinking way to complicated (again). I'm also wondering why I an empty gradient for the inequality constraint won't work?!
as always, any help will be greatly appreciated!

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by