亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? plotpipe.m

?? 一個matlab的將軍模型
?? M
字號:
function plotpipe(nextloc,type)

global_var;


A_plus =[ -3.3216            -25.736            0.0;...
          25.736              -3.3216           0.0;...
           3.14631            -5.10887    0.0];

A_minus =[-3.3216           -25.736            0.0;...
          25.736             -3.3216           0.0;...
           3.14631            -5.10887    0.0];

B = [263.824;-349.729;29378];
T = 0.002;
N = 4;
Ninterval = 10;
hard_calc= 1;
hold on;

if type==1
   actloc = nextloc;
   fprintf('Drawing  polytopes, please wait... ');%
   for i=1:length(actloc)
      var_location 	= GLOBAL_XSYS2AUTO_MAP{actloc(i)}(1);
  	   if ~(strcmp(var_location,'terminal'))& ~(strcmp(var_location,'out_of_bound'));
         var_face			= GLOBAL_XSYS2AUTO_MAP{actloc(i)}(2);
         var_state		= GLOBAL_XSYS2AUTO_MAP{actloc(i)}(3);
         hold on;
         plot(GLOBAL_AUTOMATON{var_location}.face{var_face}.state{var_state}.polytope,[.8 .8 .9]);%[sqrt(i)/i (length(actloc) - i)/length(actloc) log(i+1)/(i+1)]);
         i;pause;
  	   end
   end
	printf('done! \n');
 
else
      for i=1:length(nextloc)
   MAP={};
  var_location 	= GLOBAL_XSYS2AUTO_MAP{nextloc(i)}(1);
  if ~(strcmp(var_location,'terminal'))
      if ismember(var_location,GLOBAL_XSYS2AUTO_MAP{GLOBAL_PIHA.InitialLocations}(1))
         X0  = GLOBAL_AUTOMATON{i}.initstate{length(GLOBAL_AUTOMATON{i}.initstate)}.polytope;
         MAP = GLOBAL_AUTOMATON{i}.initstate{length(GLOBAL_AUTOMATON{i}.initstate)}.mapping;
      else   
       	var_face			= GLOBAL_XSYS2AUTO_MAP{nextloc(i)}(2);
      	var_state		= GLOBAL_XSYS2AUTO_MAP{nextloc(i)}(3);
         X0   = GLOBAL_AUTOMATON{var_location}.face{var_face}.state{var_state}.polytope;
         MAP  = GLOBAL_AUTOMATON{var_location}.face{var_face}.state{var_state}.mapping;
      end
      if (GLOBAL_PIHA.Locations{var_location}.q(1) == 1)
         b  = B;
         AM = A_plus;
      elseif (GLOBAL_PIHA.Locations{var_location}.q(1) == 2)
         b  = [B(1);B(2);-B(3)];
         AM = A_minus;
      elseif true
         AM = zeros(3,3);
         b  = zeros(3);
      end
  		if rank(AM) == size(AM,1)
		  Ainv = inv(AM);
		else
		  Ainv = [];
		end
      inv = location_invariant(var_location);
      [CE,dE,CI,dI] = linearcon_data(inv);
      [Xsim,Tstamp,Telapsed]= compute_flow_sim2(AM,Ainv,b,X0,CI,dI,T);
      Xini = X0;
      Vini = vertices(Xini);
    	eAT = expm(AM*Telapsed/Ninterval);
 		displacement = step_response(AM,Ainv,b,Telapsed/Ninterval);
      for k = 1:Ninterval
    		Vk = transform(Vini,eAT,displacement);
    		Xk = transform(Xini,eAT,displacement);
         CH = polyhedron(Vini|Vk);
         plot(CH,[0.5 0.7 0.6]);
         Vini = Vk;
         Xini = Xk;
      end
      if ~hard_calc
      	eAT = expm(AM*Tstamp);
 			displacement = step_response(AM,Ainv,b,Tstamp);
      	Xpoly  = transform(Xsim,eAT,displacement);
         REG2 	 = polyhedron(vertices(Xsim)|vertices(Xpoly));
         CI 	 = get_param(REG2,'CI'); 
         dI 	 = get_param(REG2,'dI'); 
         REG	 = linearcon([],[],CI,dI);
      else
         REG = psim_lin(AM,b,Xsim,Tstamp,1);
         fprintf(1,'REG length %4.0f \n',length(REG));
      end
      for j=1:length(REG)
         save tete inv REG
        	plot(inv&REG(j),[.7 .7 .6]);%[i*0.0005 j*0.2 0.8])
      end
	end
   fprintf(1,'Iteration # %4.0f \n',i)
   pause;
end
fprintf('done! \n');
end
return
% -----------------------------------------------------------------------------

function [Xsim,Tstamp,Telapsed] = compute_flow_sim2(A,Ainv,b,X0,CI,dI,T)

% simulate the dynamics  for each vertice, finding the new set of points
% where vector field leaves the invariant. Only for a `linear` dynamics.
%
% Syntax:
%   "[Xsim,Tstamp] = compute_flow_sim(A,Ainv,b,X0,CI,dI,T)"
%
% Description:
%   Simulate each vertice, approximating the time when trajectory crosses
%   any hyperplane. Returns:
%
%   - The new vertices (For the time when first trajectory hits a hyperplane)
%   
%   - Time stamp between the first and the last crossing of any hyperplane
%
%    The inputs to this function are
%
%   * "A": the system matrix
%
%   * "Ainv": the inverse of "A" if it exists, otherwsie it should be
%     "[]"
%
%   * "b": constant input vector for the affine dynamics
%
%   * "X0": a "linearcon" object represeting the initial set
%
%   * "CI","dI": sample points on "X0" that are simulated to construct the
%     convex hull.
%
%   * "T": the time step for the trajectory
%
%   The output "Xsim" is a "linearcon" object,(a polytope) representing the
%   transformed segment approximation. "Tstamp" is a real number recording the
%   time stamp for the flowpipe which englobes the intersection region with 
%   the invariant.
%
% Implementation:
%   To approximate the segment, we do the following:
%   
%   1) simulate the points until the first trajectory hits a hyperplane. 
%      Record the value of the vertices at that time and also the time value.
%
%   2) continue simulation until the last trajectory  hits a hyperplane.
%      Record the time value.
%
%    The simulation of each point uses the following expression:
%
%   "x(T) = e^{A*T}*x(0) + inv(A)*(e^{A*T} - I)*b"
%
% See Also:
%   stretch_func_lin,step_response,psim_lin,fs_lin_map,linearcon,transform,
%   clean_up

timing = 0;
init_T = T;
max_counter = 4;%approx_param.max_bissection;
%eAT 	 = expm(A*T);
%displacement = step_response(A,Ainv,b,T);

% Transfrom sample points by eAT
crossing = 0;
bissection_counter = 0;

[point_index,hyperplane_index] = check_crossing(vertices(X0),CI,dI);
if length(point_index)
   crossing = 1;
   bissection_counter = max_counter;
   fprintf(1,'initial set has 1 or more vertices outside invariant\n')
end
while (~crossing) | (bissection_counter <= max_counter)
	eAT 	 = expm(A*T);
	displacement = step_response(A,Ainv,b,T);
   Xt = transform(X0,eAT,displacement);
   % Check if any point cross a hyperplane
   [point_index,hyperplane_index] = check_crossing(vertices(Xt),CI,dI);
   if length(point_index)
      crossing = 1;
      T = T/2;
		bissection_counter = bissection_counter + 1;
   else
   	X0 = Xt;   
     	crossing = 0;
      timing = timing + T;
   end
end
Telapsed = timing;
Xsim = X0;
T = init_T;
all_crossing = 0;
bissection_counter = 0;
time_stamp = 0;
while (~all_crossing) | (bissection_counter <= max_counter)
	eAT 	 = expm(A*T);
	displacement = step_response(A,Ainv,b,T);
   Xt = transform(X0,eAT,displacement);
   % Check if all point cross a hyperplane
   [point_index,hyperplane_index] = check_crossing(vertices(Xt),CI,dI);
   if length(point_index)==length(vertices(Xt))
      all_crossing = 1;
      bissection_counter = bissection_counter + 1;
      if (bissection_counter > max_counter)
         time_stamp = time_stamp + T;
      end
      T = T/2;
   else
      X0 = Xt;
      time_stamp = time_stamp + T;
      all_crossing = 0;
   end
end
Tstamp = time_stamp;

return

% -----------------------------------------------------------------------------

function [point_index,hyperplane_index] = check_crossing(Vt,CI,dI)

% Check whether any point of Vt cross the boundary of the invariant INV.
%
% Vt               : Set of vertices (vertices object)
% CI,dI            : Matrix and vector with information about the invariant.
% 
% Returns:
%
% point_index      : An vector with the vertices outside the boundary. 
%                    Vertices in the boundary are considered IN. If no vertice 
%                    is found, point_index returns empty.
% hyperplane_index : A matrix where j-th row informs in which side of the hyperplane
%                    the j-th point in point_index is located. If no point_index is
%                    empty, hyperplane_index is also empty.

global GLOBAL_APPROX_PARAM

point_index = vertices;
hyperplane_index = [];
for i = 1: length(Vt)
	var_comp = CI*Vt(i) - dI < 0 + GLOBAL_APPROX_PARAM.poly_point_tol;
	if var_comp
   else
      point_index = point_index | Vt(i);
      hyperplane_index((size(hyperplane_index,1) + 1),:) = var_comp';
	end
end
return

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久国产精品午夜一区ai换脸| 蜜臀av国产精品久久久久| 天天综合天天做天天综合| 国产黑丝在线一区二区三区| 欧美图区在线视频| 国产精品区一区二区三| 日产欧产美韩系列久久99| 色综合天天综合网天天狠天天| 日韩女优av电影在线观看| 亚洲一区二区三区视频在线| 不卡视频在线看| 久久午夜电影网| 日韩国产高清在线| 欧美视频一区在线| 亚洲卡通动漫在线| 91麻豆文化传媒在线观看| 久久亚洲一区二区三区四区| 青草av.久久免费一区| 欧美日韩免费一区二区三区视频| 中文字幕第一区二区| 国产乱子轮精品视频| 日韩女同互慰一区二区| 日韩av中文字幕一区二区三区| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 国产在线日韩欧美| 欧美一区二区在线观看| 日韩av一区二区三区四区| 欧美日韩成人综合| 日韩黄色免费网站| 91精品在线观看入口| 丝袜国产日韩另类美女| 欧美日韩高清在线| 日韩国产欧美三级| 日韩精品资源二区在线| 久久精品国产秦先生| 久久久久国产成人精品亚洲午夜| 国产一区二区三区蝌蚪| 国产欧美日韩另类视频免费观看| 成人午夜在线免费| 国产精品久久久久久久久久久免费看| 国产高清久久久| 亚洲欧洲av色图| 欧美性大战久久久| 蜜桃av一区二区在线观看| 日韩欧美成人一区| 高清国产一区二区| 伊人婷婷欧美激情| 欧美精品自拍偷拍动漫精品| 久久精品久久99精品久久| 精品粉嫩aⅴ一区二区三区四区| 极品瑜伽女神91| 国产精品高潮呻吟| 欧美日韩国产精品成人| 久久国产精品第一页| 中文字幕欧美日韩一区| 欧美在线一二三四区| 美女视频一区二区| 国产精品第一页第二页第三页| 日本高清免费不卡视频| 免费xxxx性欧美18vr| 欧美激情综合网| 欧美精品在欧美一区二区少妇| 国产制服丝袜一区| 一区二区三区在线高清| 日韩精品一区二区三区四区视频 | 欧美日本一区二区在线观看| 久久99蜜桃精品| 亚洲欧美日韩系列| 精品国产1区二区| 色伊人久久综合中文字幕| 老汉av免费一区二区三区| 亚洲免费伊人电影| 精品美女一区二区三区| 色爱区综合激月婷婷| 国产在线麻豆精品观看| 性做久久久久久| 综合电影一区二区三区| 日韩限制级电影在线观看| 波多野结衣中文字幕一区| 秋霞影院一区二区| 亚洲精品视频观看| 国产色一区二区| 91麻豆精品国产91久久久| 北条麻妃国产九九精品视频| 青青草91视频| 亚洲国产精品视频| 国产精品久久久久久户外露出| 337p亚洲精品色噜噜狠狠| 91麻豆swag| 风间由美一区二区三区在线观看| 视频一区欧美日韩| 一区二区三区日韩欧美精品| 国产拍欧美日韩视频二区| 日韩一级免费一区| 91精品久久久久久久99蜜桃| 色综合久久综合网97色综合| 粉嫩aⅴ一区二区三区四区 | 99国产精品国产精品毛片| 国产精品99久久久久久久女警| 奇米精品一区二区三区在线观看一 | 成人国产精品视频| 久久99久久精品| 奇米影视一区二区三区小说| 亚洲国产乱码最新视频 | 欧美国产综合色视频| 精品奇米国产一区二区三区| 欧美一区二区啪啪| 91精品国产入口在线| 91精品国产91久久久久久最新毛片| 色婷婷一区二区| 色偷偷久久人人79超碰人人澡 | 伊人婷婷欧美激情| 一区二区三区久久久| 亚洲色图19p| 亚洲免费观看高清完整版在线观看 | 波多野结衣中文字幕一区| 粉嫩嫩av羞羞动漫久久久| 成人在线视频首页| 成人av集中营| 一本色道久久综合亚洲91| 色婷婷久久久亚洲一区二区三区| 99久久婷婷国产精品综合| 色综合久久综合网欧美综合网| 99re热视频精品| 在线视频中文字幕一区二区| 欧美日韩午夜影院| 日韩精品中文字幕在线不卡尤物| 精品三级在线看| 国产目拍亚洲精品99久久精品| 国产网站一区二区三区| 一区精品在线播放| 一区二区三区波多野结衣在线观看| 亚洲精品免费在线播放| 日本欧美一区二区在线观看| 韩日av一区二区| 99久久精品免费看国产免费软件| 91性感美女视频| 欧美久久一二三四区| 久久伊99综合婷婷久久伊| 亚洲色图19p| 日本vs亚洲vs韩国一区三区| 国产成人亚洲综合a∨婷婷| 99久久久久久| 日韩亚洲欧美在线| 国产精品成人在线观看| 视频在线在亚洲| 懂色av一区二区三区蜜臀| 欧美性视频一区二区三区| 日韩三级视频中文字幕| 国产精品久久久久一区二区三区 | 成人av电影观看| 91麻豆精品久久久久蜜臀| 国产日韩欧美一区二区三区乱码| 亚洲综合一区二区精品导航| 狠狠狠色丁香婷婷综合激情| 欧洲精品一区二区| 久久久青草青青国产亚洲免观| 亚洲综合偷拍欧美一区色| 狠狠狠色丁香婷婷综合久久五月| 色欧美88888久久久久久影院| 精品日韩一区二区三区免费视频| 亚洲精品第一国产综合野| 国产九九视频一区二区三区| 欧美高清dvd| 亚洲免费在线看| 国产很黄免费观看久久| 日韩一区二区在线看片| 亚洲免费观看高清完整版在线 | 亚洲黄色尤物视频| 国产成人午夜视频| 日韩视频一区在线观看| 亚洲精品午夜久久久| 成人免费视频网站在线观看| 9191精品国产综合久久久久久 | 激情伊人五月天久久综合| 欧美日韩久久久一区| 亚洲女爱视频在线| 国产高清不卡一区| 欧美大尺度电影在线| 性做久久久久久久免费看| 日本精品一区二区三区高清| 中日韩av电影| 高清国产午夜精品久久久久久| 精品久久国产字幕高潮| 日韩精品三区四区| 欧美日本高清视频在线观看| 亚洲人成亚洲人成在线观看图片| 国产ts人妖一区二区| 精品久久久三级丝袜| 久久se精品一区精品二区| 日韩一区二区三区免费看 | 亚洲国产精品综合小说图片区| 91麻豆高清视频| 亚洲人吸女人奶水| 97久久精品人人爽人人爽蜜臀| 国产欧美日韩激情| 播五月开心婷婷综合| 亚洲欧美综合另类在线卡通| 成人av影视在线观看| 亚洲日本一区二区|