📄 grow_polytope_for_iautopart.m
字号:
function box = grow_polytope_for_iautopart(CE,dE,CI,dI,loc,state_polytope)
%This function will 'grow' a polytope that has a dimension less than n.
%The 'sizetol' parameter that is specified by the user in the parameter m-file
%is used as the size to grow the polytope. If this parameter is not specified,
%then the default of 1e-4 is used.
global GLOBAL_AUTOMATON
global GLOBAL_PIHA
global GLOBAL_APPROX_PARAM
delta = GLOBAL_APPROX_PARAM.grow_size;
for i=1:length(dE)
CI=[CE(i,:) ; CI];
dI=[dE(i)+delta ; dI];
CI=[-CE(i,:) ; CI];
dI=[-( dE(i)-delta ) ; dI];
end
state_region=state_polytope;
[d,c,CI_state,dI_state]=linearcon_data(state_region);
box=linearcon(d,c,[CI ; CI_state],[dI ; dI_state]);
box=clean_up(box);
return
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -