title: Ignore algebraic loops in simulink
body: <p>I have a system where simulink complains about algebraic loops, however in runtime algebraic loops will never occur. Is it possible to ignore the error?</p>
  
  <p>The model have the same properties as below. There are two switches which will make an algebraic loop if both switched on, but this will never switch in runtime. Simulink cannot solve it since the value is complex.
  <img src="https://i.stack.imgur.com/v8ng8.png" alt="Example plant"></p>
  
  <p>The error message is:
  Cannot solve algebraic loop involving 'complexAlgebraicLoop/Sum' because it consists of blocks that cannot be assigned algebraic variables, such as blocks with discrete-valued outputs, blocks with non-double or complex outputs, Stateflow blocks, or nonvirtual subsystems. Consider breaking the algebraic loop. For example, add a delay or a memory block to the loop.</p>