Bound and linear constraints in nonlinear programming.
조회 수: 2 (최근 30일)
이전 댓글 표시
Would you be so helpful and expalain to me the algorithm of putting constraints on objective function variables, which take the simplest possible form:
0 <= x(1) <= 5;
0<= x(2) <=6 ... etc.;
I should point out that my function comprises multiple variables and the code looks as follows:
>function f = objfun(x)
>load('optfun_con2.mat'); %loading a set of constants
>f = (((x(1).*(x(2).*x(1).*x(5) + x(3).*x(1).*x(6) + x(4).*x(1).*x(7))./x(1) ... %no point in typing more of the function
>end
>
I want to use @objfun in Optimization Toolbox and I don't know how to implement the bound constraints. Help greatly appreciated.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Nonlinear Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!