Skip to content

Conversation

@ComboProblem
Copy link
Contributor

see title

@mkoeppe
Copy link
Owner

mkoeppe commented Jun 3, 2025

Please merge the master branch to resolve conflicts

return self._polyhedron.is_universe()


class BasicSemialgebraicSet_polyhedral_pplite_NNC_Polyhedron(BasicSemialgebraicSet_polyhedral):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest moving this new class into a separate file basic_semialgebraic_pplite

# old Sage
from sage.libs.ppl import Variable, Constraint, Linear_Expression, Constraint_System, NNC_Polyhedron, Poly_Con_Relation, Poly_Gen_Relation, Generator, MIP_Problem, point as ppl_point

from pplite import Variable as pplite_Var, Constraint as pplite_Con, Linear_Expression as pplite_Lin_Expr, Affine_Expression as pplite_Aff_expr, NNC_Polyhedron as pplite_NNC_Polyhedron, PPliteGenerator, Polyhedron_Constraint_Rel, Polyhedron_Generator_Rel
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shouldn't be imported unconditionally because we don't want to make pplite a mandatory dependency.

see below -- best put this new pplite material in a separate file

# logging.warning("max number %s of bounds propagation iterations has attained." % max_iter)
bounds_propagation_iter += 1

class BasicSemialgebraicSet_polyhedral_Normaliz_semiopen_polyhedron(BasicSemialgebraicSet_polyhedral):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also the new (unfinished?) Normaliz stuff should probably go in a separate file basic_semialgebraic_normaliz

requirements.txt Outdated
sphinxcontrib-bibtex
sphinxcontrib-websupport
pynormaliz
pplite
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be pplitepy -- https://pypi.org/project/pplitepy/

@ComboProblem ComboProblem marked this pull request as draft August 1, 2025 00:02
from __future__ import division, print_function, absolute_import

from . import basic_semialgebraic, big_cells, polyhedral_complex, real_set
from . import basic_semialgebraic, basic_semialgebraic_2, big_cells, polyhedral_complex, real_set
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file does not exist

@ComboProblem ComboProblem force-pushed the PPlite_BSA branch 6 times, most recently from e39df09 to d54735f Compare August 8, 2025 23:02
@ComboProblem ComboProblem marked this pull request as ready for review August 8, 2025 23:16
@ComboProblem
Copy link
Contributor Author

I've made the requested changes. I removed the normaliz stuff since normaliz doesn't seem to be supported as a sage backend right now, so this PR is strictly the pplite backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants