Artifact ac6908b24d01d5eb55ddc5026c71f45cfa2aeb39838b0bd1ecacbb9fbfbe8d5b:


function [x] = mtt_zeroswitches(x,Nx,open)
  I_open = nozeros(open.*[1:Nx]'); # Indices of open switches
  x(I_open) = 0.0;		   # Open switches have zero states
endfunction;

MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]