I have a very long objective function (sum of 1000+ terms) which causes simplify(expr: &LpExpression) -> LpExpression to overflow the stack when adding the objective function to the problem. Similarly solver.run also triggers the overflow. I understand this might not be the standard use case, and there might not be an easy fix. But I'd like to know what the purpose of simplify is, and if there's a way I can manually get my function into its "normal form" so that I can remove the call to simplify.
I have a very long objective function (sum of 1000+ terms) which causes
simplify(expr: &LpExpression) -> LpExpressionto overflow the stack when adding the objective function to the problem. Similarlysolver.runalso triggers the overflow. I understand this might not be the standard use case, and there might not be an easy fix. But I'd like to know what the purpose ofsimplifyis, and if there's a way I can manually get my function into its "normal form" so that I can remove the call tosimplify.