Research Article

Supervisor Reconfiguration for Deadlock Prevention by Resources Reallocation

Algorithm 2

Controlled system design for .
Input: an ordinary M-net with
Output: controlled system
begin {
design a controlled system for by Algorithm 1, then
,
,
,
, ,
,
While    makes not live, which can be decided by the MIP-based deadlock detection
method in [32]}  do
for   to   do
   ;
end for
end while
       denotes the marking vector
for   to   do
;
end for
       denotes the marking vector
while (1) do
for   to   do
  if  
    ;
  else
    ;
   break;
  end if
end for
if   makes live, which can be decided by the MIP-based deadlock detection
 method in [32]}do
   break;
end if
end while
,
output
} end of the algorithm