PPOPT icon indicating copy to clipboard operation
PPOPT copied to clipboard

put shortcircuit to avoid allclose

Open cacodcar opened this issue 1 month ago • 0 comments

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

  1. if looking at same block: only check two will be possible, so continue without running any checks
  2. if after check two, neither checks have yielded, check three is unnecessary as the checks > 2 is not possible
  3. Conversely, if both check 1 and check 2 have already yielded... computationally expensive check three can be skipped

cacodcar avatar Nov 03 '25 22:11 cacodcar