Open mkoeppe opened 2 weeks ago
Documentation preview for this PR (built with commit 998ccd42fb43c839f3fc4ef8b26659fb33c86616; changes) is ready! :tada: This preview will update shortly after each push to this PR.
@ComboProblem I've copied in the ticket description from the old ticket https://github.com/sagemath/sage/issues/31312. Part of what it's promising:
- recognizing trivial coefficients (0, 1) is switched to comparing text instead of comparing elements - in order to support fields such as
SR
where==
is magic
Could you add a test that uses an LP with coefficients from SR
(for example, constant symbolic expressions such as pi
or log(2)
or sqrt(5)
)
We remove the ad-hoc conversion of data to
RDF
inInteractiveLPProblem.feasible_set
. This is outdated and problematic:RDF
is not robust at allWe also make the printing code in
_latex_product
more robust:SR
to decide whether a coefficient needs to be wrapped in parens; instead, we use the same simple test thatsage.misc.repr.coeff_repr
already usesSR
where==
is magicRebased version of:
31312
Author: @mkoeppe, @ComboProblem
Resolves #31312.
:memo: Checklist
:hourglass: Dependencies