nonlinear optimization with dynamic constraints

조회 수: 1 (최근 30일)
Jakob Sievers
Jakob Sievers 2014년 3월 10일
댓글: Jakob Sievers 2014년 3월 11일
Hi all
Is it possible to assign a dynamic set of constraints when using an optimization routine such as fmincon? Specifically I am trying to solve a problem with 3 variables and I'd like to have the bounds on the last variable depend on the sign of the first variable.
edit: the bounds on the third variable are set in advance (bound_pos & bound_neg).
Cheers
Jakob

채택된 답변

Alan Weiss
Alan Weiss 2014년 3월 10일
While you can program anything you like into a nonlinear constraint function, I recommend that you solve the problem twice, one with bounds set assuming that x(1) is positive, the other assuming that x(1) is negative. Then examine your solutions and take the one that is consistent with your assumption.
Alan Weiss
MATLAB mathematical toolbox documentation
  댓글 수: 1
Jakob Sievers
Jakob Sievers 2014년 3월 11일
Thanks for this comment as well. I figured out that I might be able to narrow down the sign of that third parameter before using an optimization routine so I could make due with just one run. Cheers

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Nonlinear Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by