⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 activecstr.m

📁 matlab7 gads工具箱
💻 M
字号:
function active = activecstr(x,A,LB,UB,ToL)
%ACTIVECSTR determines the active consraints with
% 	respect to A, LB and UB with a a specified tolerance 'tol'

%   Copyright 2004 The MathWorks, Inc.
%   $Revision: 1.2 $  $Date: 2004/01/16 16:51:04 $


%setup the costraint status A*x; we already have LB and UB.
Ax = A*x;
%Check the tolerance with respect to each constraints;
lowerbounds = (abs(LB-Ax)<=ToL);
upperbounds = (abs(Ax-UB)<=ToL);

active = any(lowerbounds) || any(upperbounds);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -