constr.m

来自「matlab最优化工具箱」· M 代码 · 共 15 行

M
15
字号
%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 + =
减小字号Ctrl + -
显示快捷键?