Dynamic-Calibration/utils/YALMIP-master/modules/global/powerbound.m

6 lines
186 B
Matlab
Executable File

function bound = powerbound(lb,ub,powers)
vars = find(powers);
bound = [1 1];
for k = 1:length(vars)
bound = intvmul(bound,intvpower([lb(vars(k)) ub(vars(k))],powers(vars(k))));
end