mttNotifyCausalCompletion.m 932 B

123456789101112131415161718
  1. function mttNotifyCausalCompletion(model)
  2. flow = floor(100*model.causal_completion.flows/model.causal_completion.bonds) ;
  3. effort = floor(100*model.causal_completion.efforts/model.causal_completion.bonds) ;
  4. unicausal = model.causal_completion.unicausal/model.causal_completion.bonds ;
  5. if model.causal_completion.is_unicausal
  6. fprintf([' ...causality is %i%% complete [%i/%i]: all unicausal\n'],...
  7. flow,model.causal_completion.assignments,model.causal_completion.bonds) ;
  8. else
  9. fprintf([' .....flow causality is %i%% complete [%i/%i]\n'],...
  10. flow,model.causal_completion.flows,model.causal_completion.bonds) ;
  11. fprintf([' ...effort causality is %i%% complete [%i/%i]\n'],...
  12. effort,model.causal_completion.efforts,model.causal_completion.bonds) ;
  13. fprintf([' => %i bonds are unicausal\n'],...
  14. model.causal_completion.unicausal) ;
  15. end