www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptimoptions/getNonlcon.m
function out = getNonlcon(obj) %GETNONLCON Get nonlinear constraint information. % OUT = GETNONLCON(OPTIONS) returns a structure array of % information regarding the nonlinear constraints in the optimization. The % structure has three fields: label, type and pars. The label field contains the % label used for the constraint in the CAGE GUI. The typestr field contains % constraint type selected by the user. The pars field contains any % parameters associated with the constraint. % % See also CGOPTIMOPTIONS/GETMODELCONSTRAINTS, % CGOPTIMOPTIONS/GETLINEARCONSTRAINTS. % Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc. condetailcell = struct2cell(obj.constraints.details); idx = ~strcmpi(condetailcell(2, :), 'linear'); out = obj.constraints.details(idx);