tailieunhanh - APPLIED NUMERICAL METHODS USING MATLAB phần 8

dao động như điên với tần số cao hơn và biên độ lớn hơn như y được gần bằng không (0), thiết lập thấp hơn bị ràng buộc của khoảng thời gian hội nhập a2 = . (iv) Chạy chương trình bổ sung và điền vào Bảng với các lỗi của các kết quả tuyệt đối. | MATLAB BUILT-IN ROUTINES FOR OPTIMIZATION 353 Usage of the MATLAB built-in function fmincon xo fo . fmincon ftn x0 A b Aeq beq l u nlcon options p1 p2 . Input Arguments at least four input arguments ftn x0 A and b required ftn an objective function f x to be minimized usually defined in an M-file but can be defined as an inline function which will remove the necessity of quotes Il . x0 an initial guess x0 of the solution A b a linear inequality constraints Ax b to be given as if not applied. Aeq beq a linear equality constraints Aeqx beq to be given as if not applied. l u lower upper bound vectors such that l x u to be given as if not applied set l i -inf u i inf if x i is not bounded below above. lnlconl a nonlinear constraint function defined in an M-file supposed to return the two output arguments for a given x the first one being the LHS vector of inequality constraints c x 0 and the second one being the LHS vector of equality constraints ceq x 0 to be given as if not applied. options used for setting the display parameter the tolerances for xo and f xo and so on to be given as if not applied. For details type help optimset into the MATLAB command window. p1 p2 . the problem-dependent parameters to be passed to the objective function f x and the nonlinear constraint functions c x ceq x . Output Arguments xo the minimum point xo reached in the permissible region satisfying the constraints fo the minimized function value f xo nm732_1 to solve a constrained optimization problem by fmincon clear clf ftn x 1 A2 5 x 2 - A2 x 1 A2 .6 x 2 A2 f722o inline ftn x x0 0 initial guess A B Aeq Beq no linear constraints l -inf ones size x0 u inf ones size x0 no lower upperbound options optimset LargeScale ioff just is OK. xo_con fo_con fmincon f722o x0 A B Aeq Beq l u lf722cl options co ceqo f722c xo_con to see how constraints are. 354 OPTIMIZATION Min f x . Ax b Aeqx beq c x 0 ceq x 0 and l x u A part of its usage can be seen by typing

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.