Dynamic-Calibration/utils/YALMIP-master/operators/mpower_internal.m

12 lines
429 B
Mathematica
Raw Normal View History

2019-12-18 11:25:45 +00:00
function varargout = mpower_internal(varargin)
switch class(varargin{1})
case 'double'
varargout{1} = varargin{1};
case 'char'
% Note, the order here is assumed in GP formulation
varargout{1} = (varargin{3} == varargin{2});
varargout{2} = struct('convexity','none','monotonicity','none','definiteness','none','model','exact');
varargout{3} = varargin{3};
otherwise
end