-
Notifications
You must be signed in to change notification settings - Fork 11
Add BSA class with pplite backend. #86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Please merge the master branch to resolve conflicts |
| return self._polyhedron.is_universe() | ||
|
|
||
|
|
||
| class BasicSemialgebraicSet_polyhedral_pplite_NNC_Polyhedron(BasicSemialgebraicSet_polyhedral): |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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/
| 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 |
There was a problem hiding this comment.
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
e39df09 to
d54735f
Compare
d54735f to
0ccacce
Compare
|
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. |
see title