www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptimrunner/isConstantLinCon.m
function out = isConstantLinCon(or) %ISCONSTANTLINCON Return whether linear constraints are constant % % OUT = ISCONSTANTLINCON(IN) determines whether the linear constraint % matrices vary between runs. This method is primarily required to % provide support for optimization scripts written in MBC Version 2.0 % % See also CGOPTIMRUNNER/GETLINEARCONSTRAINTS % Copyright 2005 The MathWorks, Inc. % Linear constraints are constant between runs if or.LinearConstraints.A2 % is non zero out = ~any(or.LinearConstraints.A2(:));