www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@xregdesign/getOptimConstraints.m

    function [consFcn, A, b] = getOptimConstraints(des)
%GETOPTIMCONSTRAINTS Get constraints for optimizations
%
%  [CONSFCN, A, B] = GETOPTIMCONSTRAINTS(DES)
%
%  See also XREGDESIGN, DES_CONSTRAINTS/GETOPTIMCONSTRAINTS.

%  Copyright 2005 The MathWorks, Inc.

if length( des.constraints ) <= 0,
    consFcn = '';
    A = [];
    b = [];
else
    [consFcn, A, b] = getOptimConstraints( des.constraints, model( des ) );
end

%------------------------------------------------------------------------------|
% EOF
%------------------------------------------------------------------------------|