📄 constr.m
字号:
%CONSTR Contrained optimization%% x=constr('f',x0,options,xlow,xhigh,'g') finds the value of x for which % the first output of f is minimal in the range constrained by f second output. % f(x) should return two outputs : the first output is minimized subject % to the second output being non-positive.% options is optional, giving the optimization arguments. If options% is the empty matrix, default options are used.% xlow and xhigh provide lower and upper bounds for x value. g(x) provides % the optional gradient of the function f(x). Optional arguments may be % provided to f by passing them to constr after 'g'.%% Copyright (c) 1994-1999 by MathTools, Ltd.% Built-in function.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -