www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgconstraint/getEvalDependencies.m

    function [pInp, Funcs] = getEvalDependencies(obj, op)
%GETEVALDEPENDENCIES Get input requirements for an evaluation operation
%
%  [PINP, FUNCS] = GETEVALDEPENDENCIES(OBJ, OP) returns a list of input
%  pointers and the function that should be called on each one in order to
%  generate the inputs for the specified evaluation operation.  OP should
%  be either a string or function handle to an expression method that
%  accepts a cell array of input values and operates on them to produce an
%  output, for example evalAtInputs, cevalAtInputs or pevevalAtInputs.
%
%  For cgconstraint objects, this function overloads the requirements for
%  constraint evaluation and converts it to the requirements for a standard
%  evaluation.

%  Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc.


% Constraints always use the standard evaluation of inputs by default
pInp = getinputs(obj);
Funcs = repmat({@evalAtInputs}, size(pInp));