PPOPT
PPOPT copied to clipboard
put shortcircuit to avoid allclose
I ran a profile using one of Harsh's case study, and numpy.allclose (in detect_implicit_equalities) is the most time consuming part of the solution procedure
Hence, added some short circuits
- if looking at same block: only check two will be possible, so continue without running any checks
- if after check two, neither checks have yielded, check three is unnecessary as the checks > 2 is not possible
- Conversely, if both check 1 and check 2 have already yielded... computationally expensive check three can be skipped