📄 checkconstraints.m
字号:
function [lowerbounds,upperbounds] = checkconstraints(x,A,LB,UB,ToL)
%CHECKCONSTRINTS determines the active lower and upper consraints with
% respect to A, LB and UB with a a specified tolerance 'tol'
%
% LOWERBOUNDS, UPPERBOUNDS are indices of active constraints w.r.t. lower
% and upper bounds (LB and UB)
% Copyright 2004 The MathWorks, Inc.
% $Revision: 1.4 $ $Date: 2004/01/16 16:50:10 $
% Rakesh Kumar
%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);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -