In Python 3.10, is it possible to use docplex along with mpmath (https://mpmath.org/), e.g., to compute expressions in constraints and objectives with arbitrary precision?

  • $\begingroup$ Do you want to display the solution precision with an arbitrary number in docplex? If so, why not try to use docplex own method? do you have any force to use mpmath? $\endgroup$
    – A.Omidi
    Nov 29, 2023 at 13:25
  • $\begingroup$ No. Constraints and objectives are evaluated inside the solver. Of course, the question is: why would you want that? I assume you have a poorly scaled model. I would work on that problem. But notice that solvers will scale your problem. $\endgroup$ Nov 29, 2023 at 13:39


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.