Closed michaelbynum closed 2 years ago
math.isclose
numpy.isclose
SumExpression
LinearExpression
QuadraticExpression
On the test problem I was using, these changes improved performance by an order of magnitude.
math.isclose
instead ofnumpy.isclose
. It is much faster if operating on floats.SumExpression
,LinearExpression
, andQuadraticExpression
can be done in linear time.On the test problem I was using, these changes improved performance by an order of magnitude.