www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptimstore/evaluateIneqCon.m
function [varargout] = evaluateIneqCon(optimstore, X) %EVALUATEINEQCON Evaluate optimization nonlinear inequality constraints % Y = EVALUATEINEQCON(OPTIMSTORE, X) evaluates all of the nonlinear inequality % constraints in the optimization at the free variable values X. X must % be a (NPoints-by-NFreeVar) matrix where NPoints is the number of points % to be evaluated and NFreeVar is the number of free variables in the % optimization. % % Note that if the user enables scaling of the optimization items, then % the evaluation of Y is approximately scaled onto [-1 1]. See 'Scale % Optimization' in the Using CAGE section of the documentation for more % information on scaling. % % See also CGOPTIMSTORE/EVALUATEEQCON % Copyright 2005-2010 The MathWorks, Inc. and Ford Global Technologies, Inc. ItemNames = getConstraintNames(optimstore.OptimRunner, 'inequality'); if ~isempty(ItemNames) [varargout{1:nargout}] = evaluateConstraint(optimstore.OptimRunner, X, ItemNames); else varargout = cell(1,nargout); end