Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve performance for large models (#750)
* Avoid allocating an additional LpAffineExpression when creating a LpConstraint comparing against an int or float * LpConstraint no longer inherits from LpAffineExpression to avoid unnecessary copying of LpAffineExpression's contents * Avoid creating tempory lists when not needed * cplex_api: Avoid creating temporary lists in buildSolverModel * Format with black * Avoid allocating an extra list in LpAffineExpression.sorted_keys * Add missing asCplexLpAffineExpression function to LpConstraint * Add missing isAtomic and atom functions to LpConstraint * Fix formatting with black * fixed type of self.constraints --------- Co-authored-by: pchtsp <pchtsp@gmail.com>
- Loading branch information