www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptimoptions/getConstraints.m
function coninfo = getConstraints(obj) %GETCONSTRAINTS Return information about all optimization constraints. % CONINFO = GETCONSTRAINTS(OPTIONS) returns a structure array of % information regarding the optimization constraint functions. % CONINFO(i).label contains the label for the i-th constraint. A string % defining the type of the i-th constraint is stored in % CONINFO(i).typestr. The constraint parameters are stored in % CONINFO(i).pars. % % See also CGOPTIMOPTIONS/ADDMODELCONSTRAINT, % CGOPTIMOPTIONS/ADDLINEARCONSTRAINT. % Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc. coninfo = obj.constraints.details;