passagemath-polyhedra 10.6.31rc3__cp314-cp314-macosx_13_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of passagemath-polyhedra might be problematic. Click here for more details.

Files changed (205) hide show
  1. passagemath_polyhedra-10.6.31rc3.dist-info/METADATA +368 -0
  2. passagemath_polyhedra-10.6.31rc3.dist-info/METADATA.bak +371 -0
  3. passagemath_polyhedra-10.6.31rc3.dist-info/RECORD +205 -0
  4. passagemath_polyhedra-10.6.31rc3.dist-info/WHEEL +6 -0
  5. passagemath_polyhedra-10.6.31rc3.dist-info/top_level.txt +2 -0
  6. passagemath_polyhedra.dylibs/libgmp.10.dylib +0 -0
  7. sage/all__sagemath_polyhedra.py +50 -0
  8. sage/game_theory/all.py +8 -0
  9. sage/game_theory/catalog.py +6 -0
  10. sage/game_theory/catalog_normal_form_games.py +923 -0
  11. sage/game_theory/cooperative_game.py +844 -0
  12. sage/game_theory/matching_game.py +1181 -0
  13. sage/game_theory/normal_form_game.py +2697 -0
  14. sage/game_theory/parser.py +275 -0
  15. sage/geometry/all__sagemath_polyhedra.py +22 -0
  16. sage/geometry/cone.py +6940 -0
  17. sage/geometry/cone_catalog.py +847 -0
  18. sage/geometry/cone_critical_angles.py +1027 -0
  19. sage/geometry/convex_set.py +1119 -0
  20. sage/geometry/fan.py +3743 -0
  21. sage/geometry/fan_isomorphism.py +389 -0
  22. sage/geometry/fan_morphism.py +1884 -0
  23. sage/geometry/hasse_diagram.py +202 -0
  24. sage/geometry/hyperplane_arrangement/affine_subspace.py +390 -0
  25. sage/geometry/hyperplane_arrangement/all.py +1 -0
  26. sage/geometry/hyperplane_arrangement/arrangement.py +3895 -0
  27. sage/geometry/hyperplane_arrangement/check_freeness.py +145 -0
  28. sage/geometry/hyperplane_arrangement/hyperplane.py +773 -0
  29. sage/geometry/hyperplane_arrangement/library.py +825 -0
  30. sage/geometry/hyperplane_arrangement/ordered_arrangement.py +642 -0
  31. sage/geometry/hyperplane_arrangement/plot.py +520 -0
  32. sage/geometry/integral_points.py +35 -0
  33. sage/geometry/integral_points_generic_dense.cpython-314-darwin.so +0 -0
  34. sage/geometry/integral_points_generic_dense.pyx +7 -0
  35. sage/geometry/lattice_polytope.py +5894 -0
  36. sage/geometry/linear_expression.py +773 -0
  37. sage/geometry/newton_polygon.py +767 -0
  38. sage/geometry/point_collection.cpython-314-darwin.so +0 -0
  39. sage/geometry/point_collection.pyx +1008 -0
  40. sage/geometry/polyhedral_complex.py +2616 -0
  41. sage/geometry/polyhedron/all.py +8 -0
  42. sage/geometry/polyhedron/backend_cdd.py +460 -0
  43. sage/geometry/polyhedron/backend_cdd_rdf.py +231 -0
  44. sage/geometry/polyhedron/backend_field.py +347 -0
  45. sage/geometry/polyhedron/backend_normaliz.py +2503 -0
  46. sage/geometry/polyhedron/backend_number_field.py +168 -0
  47. sage/geometry/polyhedron/backend_polymake.py +765 -0
  48. sage/geometry/polyhedron/backend_ppl.py +582 -0
  49. sage/geometry/polyhedron/base.py +1206 -0
  50. sage/geometry/polyhedron/base0.py +1444 -0
  51. sage/geometry/polyhedron/base1.py +886 -0
  52. sage/geometry/polyhedron/base2.py +812 -0
  53. sage/geometry/polyhedron/base3.py +1845 -0
  54. sage/geometry/polyhedron/base4.py +1262 -0
  55. sage/geometry/polyhedron/base5.py +2700 -0
  56. sage/geometry/polyhedron/base6.py +1741 -0
  57. sage/geometry/polyhedron/base7.py +997 -0
  58. sage/geometry/polyhedron/base_QQ.py +1258 -0
  59. sage/geometry/polyhedron/base_RDF.py +98 -0
  60. sage/geometry/polyhedron/base_ZZ.py +934 -0
  61. sage/geometry/polyhedron/base_mutable.py +215 -0
  62. sage/geometry/polyhedron/base_number_field.py +122 -0
  63. sage/geometry/polyhedron/cdd_file_format.py +155 -0
  64. sage/geometry/polyhedron/combinatorial_polyhedron/all.py +1 -0
  65. sage/geometry/polyhedron/combinatorial_polyhedron/base.cpython-314-darwin.so +0 -0
  66. sage/geometry/polyhedron/combinatorial_polyhedron/base.pxd +76 -0
  67. sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx +3859 -0
  68. sage/geometry/polyhedron/combinatorial_polyhedron/combinatorial_face.cpython-314-darwin.so +0 -0
  69. sage/geometry/polyhedron/combinatorial_polyhedron/combinatorial_face.pxd +39 -0
  70. sage/geometry/polyhedron/combinatorial_polyhedron/combinatorial_face.pyx +1038 -0
  71. sage/geometry/polyhedron/combinatorial_polyhedron/conversions.cpython-314-darwin.so +0 -0
  72. sage/geometry/polyhedron/combinatorial_polyhedron/conversions.pxd +9 -0
  73. sage/geometry/polyhedron/combinatorial_polyhedron/conversions.pyx +501 -0
  74. sage/geometry/polyhedron/combinatorial_polyhedron/face_data_structure.pxd +207 -0
  75. sage/geometry/polyhedron/combinatorial_polyhedron/face_iterator.cpython-314-darwin.so +0 -0
  76. sage/geometry/polyhedron/combinatorial_polyhedron/face_iterator.pxd +102 -0
  77. sage/geometry/polyhedron/combinatorial_polyhedron/face_iterator.pyx +2274 -0
  78. sage/geometry/polyhedron/combinatorial_polyhedron/face_list_data_structure.cpython-314-darwin.so +0 -0
  79. sage/geometry/polyhedron/combinatorial_polyhedron/face_list_data_structure.pxd +370 -0
  80. sage/geometry/polyhedron/combinatorial_polyhedron/face_list_data_structure.pyx +84 -0
  81. sage/geometry/polyhedron/combinatorial_polyhedron/list_of_faces.cpython-314-darwin.so +0 -0
  82. sage/geometry/polyhedron/combinatorial_polyhedron/list_of_faces.pxd +31 -0
  83. sage/geometry/polyhedron/combinatorial_polyhedron/list_of_faces.pyx +587 -0
  84. sage/geometry/polyhedron/combinatorial_polyhedron/polyhedron_face_lattice.cpython-314-darwin.so +0 -0
  85. sage/geometry/polyhedron/combinatorial_polyhedron/polyhedron_face_lattice.pxd +52 -0
  86. sage/geometry/polyhedron/combinatorial_polyhedron/polyhedron_face_lattice.pyx +560 -0
  87. sage/geometry/polyhedron/constructor.py +773 -0
  88. sage/geometry/polyhedron/double_description.py +753 -0
  89. sage/geometry/polyhedron/double_description_inhomogeneous.py +564 -0
  90. sage/geometry/polyhedron/face.py +1060 -0
  91. sage/geometry/polyhedron/generating_function.py +1810 -0
  92. sage/geometry/polyhedron/lattice_euclidean_group_element.py +178 -0
  93. sage/geometry/polyhedron/library.py +3502 -0
  94. sage/geometry/polyhedron/misc.py +121 -0
  95. sage/geometry/polyhedron/modules/all.py +1 -0
  96. sage/geometry/polyhedron/modules/formal_polyhedra_module.py +155 -0
  97. sage/geometry/polyhedron/palp_database.py +447 -0
  98. sage/geometry/polyhedron/parent.py +1279 -0
  99. sage/geometry/polyhedron/plot.py +1986 -0
  100. sage/geometry/polyhedron/ppl_lattice_polygon.py +556 -0
  101. sage/geometry/polyhedron/ppl_lattice_polytope.py +1257 -0
  102. sage/geometry/polyhedron/representation.py +1723 -0
  103. sage/geometry/pseudolines.py +515 -0
  104. sage/geometry/relative_interior.py +445 -0
  105. sage/geometry/toric_plotter.py +1103 -0
  106. sage/geometry/triangulation/all.py +2 -0
  107. sage/geometry/triangulation/base.cpython-314-darwin.so +0 -0
  108. sage/geometry/triangulation/base.pyx +963 -0
  109. sage/geometry/triangulation/data.h +147 -0
  110. sage/geometry/triangulation/data.pxd +4 -0
  111. sage/geometry/triangulation/element.py +914 -0
  112. sage/geometry/triangulation/functions.h +10 -0
  113. sage/geometry/triangulation/functions.pxd +4 -0
  114. sage/geometry/triangulation/point_configuration.py +2256 -0
  115. sage/geometry/triangulation/triangulations.h +49 -0
  116. sage/geometry/triangulation/triangulations.pxd +7 -0
  117. sage/geometry/voronoi_diagram.py +319 -0
  118. sage/interfaces/all__sagemath_polyhedra.py +1 -0
  119. sage/interfaces/polymake.py +2028 -0
  120. sage/numerical/all.py +13 -0
  121. sage/numerical/all__sagemath_polyhedra.py +11 -0
  122. sage/numerical/backends/all.py +1 -0
  123. sage/numerical/backends/all__sagemath_polyhedra.py +1 -0
  124. sage/numerical/backends/cvxopt_backend.cpython-314-darwin.so +0 -0
  125. sage/numerical/backends/cvxopt_backend.pyx +1006 -0
  126. sage/numerical/backends/cvxopt_backend_test.py +19 -0
  127. sage/numerical/backends/cvxopt_sdp_backend.cpython-314-darwin.so +0 -0
  128. sage/numerical/backends/cvxopt_sdp_backend.pyx +382 -0
  129. sage/numerical/backends/cvxpy_backend.cpython-314-darwin.so +0 -0
  130. sage/numerical/backends/cvxpy_backend.pxd +41 -0
  131. sage/numerical/backends/cvxpy_backend.pyx +934 -0
  132. sage/numerical/backends/cvxpy_backend_test.py +13 -0
  133. sage/numerical/backends/generic_backend_test.py +24 -0
  134. sage/numerical/backends/interactivelp_backend.cpython-314-darwin.so +0 -0
  135. sage/numerical/backends/interactivelp_backend.pxd +36 -0
  136. sage/numerical/backends/interactivelp_backend.pyx +1231 -0
  137. sage/numerical/backends/interactivelp_backend_test.py +12 -0
  138. sage/numerical/backends/logging_backend.py +391 -0
  139. sage/numerical/backends/matrix_sdp_backend.cpython-314-darwin.so +0 -0
  140. sage/numerical/backends/matrix_sdp_backend.pxd +15 -0
  141. sage/numerical/backends/matrix_sdp_backend.pyx +478 -0
  142. sage/numerical/backends/ppl_backend.cpython-314-darwin.so +0 -0
  143. sage/numerical/backends/ppl_backend.pyx +1126 -0
  144. sage/numerical/backends/ppl_backend_test.py +13 -0
  145. sage/numerical/backends/scip_backend.cpython-314-darwin.so +0 -0
  146. sage/numerical/backends/scip_backend.pxd +22 -0
  147. sage/numerical/backends/scip_backend.pyx +1289 -0
  148. sage/numerical/backends/scip_backend_test.py +13 -0
  149. sage/numerical/interactive_simplex_method.py +5338 -0
  150. sage/numerical/knapsack.py +665 -0
  151. sage/numerical/linear_functions.cpython-314-darwin.so +0 -0
  152. sage/numerical/linear_functions.pxd +31 -0
  153. sage/numerical/linear_functions.pyx +1648 -0
  154. sage/numerical/linear_tensor.py +470 -0
  155. sage/numerical/linear_tensor_constraints.py +448 -0
  156. sage/numerical/linear_tensor_element.cpython-314-darwin.so +0 -0
  157. sage/numerical/linear_tensor_element.pxd +6 -0
  158. sage/numerical/linear_tensor_element.pyx +459 -0
  159. sage/numerical/mip.cpython-314-darwin.so +0 -0
  160. sage/numerical/mip.pxd +40 -0
  161. sage/numerical/mip.pyx +3667 -0
  162. sage/numerical/sdp.cpython-314-darwin.so +0 -0
  163. sage/numerical/sdp.pxd +39 -0
  164. sage/numerical/sdp.pyx +1433 -0
  165. sage/rings/all__sagemath_polyhedra.py +3 -0
  166. sage/rings/polynomial/all__sagemath_polyhedra.py +10 -0
  167. sage/rings/polynomial/omega.py +982 -0
  168. sage/schemes/all__sagemath_polyhedra.py +2 -0
  169. sage/schemes/toric/all.py +10 -0
  170. sage/schemes/toric/chow_group.py +1248 -0
  171. sage/schemes/toric/divisor.py +2082 -0
  172. sage/schemes/toric/divisor_class.cpython-314-darwin.so +0 -0
  173. sage/schemes/toric/divisor_class.pyx +322 -0
  174. sage/schemes/toric/fano_variety.py +1606 -0
  175. sage/schemes/toric/homset.py +650 -0
  176. sage/schemes/toric/ideal.py +451 -0
  177. sage/schemes/toric/library.py +1322 -0
  178. sage/schemes/toric/morphism.py +1958 -0
  179. sage/schemes/toric/points.py +1032 -0
  180. sage/schemes/toric/sheaf/all.py +1 -0
  181. sage/schemes/toric/sheaf/constructor.py +302 -0
  182. sage/schemes/toric/sheaf/klyachko.py +921 -0
  183. sage/schemes/toric/toric_subscheme.py +905 -0
  184. sage/schemes/toric/variety.py +3460 -0
  185. sage/schemes/toric/weierstrass.py +1078 -0
  186. sage/schemes/toric/weierstrass_covering.py +457 -0
  187. sage/schemes/toric/weierstrass_higher.py +288 -0
  188. sage_wheels/share/reflexive_polytopes/Full2d/zzdb.info +10 -0
  189. sage_wheels/share/reflexive_polytopes/Full2d/zzdb.v03 +0 -0
  190. sage_wheels/share/reflexive_polytopes/Full2d/zzdb.v04 +0 -0
  191. sage_wheels/share/reflexive_polytopes/Full2d/zzdb.v05 +1 -0
  192. sage_wheels/share/reflexive_polytopes/Full2d/zzdb.v06 +1 -0
  193. sage_wheels/share/reflexive_polytopes/Full3d/zzdb.info +22 -0
  194. sage_wheels/share/reflexive_polytopes/Full3d/zzdb.v04 +0 -0
  195. sage_wheels/share/reflexive_polytopes/Full3d/zzdb.v05 +0 -0
  196. sage_wheels/share/reflexive_polytopes/Full3d/zzdb.v06 +0 -0
  197. sage_wheels/share/reflexive_polytopes/Full3d/zzdb.v07 +0 -0
  198. sage_wheels/share/reflexive_polytopes/Full3d/zzdb.v08 +0 -0
  199. sage_wheels/share/reflexive_polytopes/Full3d/zzdb.v09 +0 -0
  200. sage_wheels/share/reflexive_polytopes/Full3d/zzdb.v10 +0 -0
  201. sage_wheels/share/reflexive_polytopes/Full3d/zzdb.v11 +1 -0
  202. sage_wheels/share/reflexive_polytopes/Full3d/zzdb.v12 +1 -0
  203. sage_wheels/share/reflexive_polytopes/Full3d/zzdb.v13 +1 -0
  204. sage_wheels/share/reflexive_polytopes/reflexive_polytopes_2d +80 -0
  205. sage_wheels/share/reflexive_polytopes/reflexive_polytopes_3d +37977 -0
@@ -0,0 +1,368 @@
1
+ Metadata-Version: 2.4
2
+ Name: passagemath-polyhedra
3
+ Version: 10.6.31rc3
4
+ Summary: passagemath: Convex polyhedra in arbitrary dimension, mixed integer linear optimization
5
+ Author-email: The Sage Developers <sage-support@googlegroups.com>
6
+ Maintainer: Matthias Köppe, passagemath contributors
7
+ License-Expression: GPL-2.0-or-later
8
+ Project-URL: release notes, https://github.com/passagemath/passagemath/releases
9
+ Project-URL: repo (upstream), https://github.com/sagemath/sage
10
+ Project-URL: repo, https://github.com/passagemath/passagemath
11
+ Project-URL: documentation, https://passagemath.org/docs/latest
12
+ Project-URL: homepage (upstream), https://www.sagemath.org
13
+ Project-URL: discourse, https://passagemath.discourse.group
14
+ Project-URL: tracker (upstream), https://github.com/sagemath/sage/issues
15
+ Project-URL: tracker, https://github.com/passagemath/passagemath/issues
16
+ Classifier: Development Status :: 6 - Mature
17
+ Classifier: Intended Audience :: Education
18
+ Classifier: Intended Audience :: Science/Research
19
+ Classifier: Operating System :: POSIX
20
+ Classifier: Operating System :: POSIX :: Linux
21
+ Classifier: Operating System :: MacOS :: MacOS X
22
+ Classifier: Programming Language :: Python :: 3 :: Only
23
+ Classifier: Programming Language :: Python :: 3.10
24
+ Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
26
+ Classifier: Programming Language :: Python :: 3.13
27
+ Classifier: Programming Language :: Python :: 3.14
28
+ Classifier: Programming Language :: Python :: Implementation :: CPython
29
+ Classifier: Topic :: Scientific/Engineering :: Mathematics
30
+ Requires-Python: <3.15,>=3.10
31
+ Description-Content-Type: text/x-rst
32
+ Requires-Dist: gmpy2~=2.1.b999
33
+ Requires-Dist: cysignals<1.12.4; sys_platform == "win32"
34
+ Requires-Dist: cysignals!=1.12.0,>=1.11.2
35
+ Requires-Dist: passagemath-ppl
36
+ Requires-Dist: memory_allocator
37
+ Requires-Dist: passagemath-environment>=10.6.31rc3
38
+ Requires-Dist: passagemath-environment<10.6.31rc4
39
+ Requires-Dist: passagemath-glpk==10.6.31rc3
40
+ Requires-Dist: passagemath-modules==10.6.31rc3
41
+ Provides-Extra: conf
42
+ Provides-Extra: test
43
+ Requires-Dist: passagemath-repl; extra == "test"
44
+ Provides-Extra: flint
45
+ Requires-Dist: passagemath-flint; extra == "flint"
46
+ Provides-Extra: fpylll
47
+ Requires-Dist: fpylll>=0.5.9; extra == "fpylll"
48
+ Provides-Extra: linbox
49
+ Requires-Dist: passagemath-linbox; extra == "linbox"
50
+ Provides-Extra: pari
51
+ Requires-Dist: passagemath-pari; extra == "pari"
52
+ Provides-Extra: 4ti2
53
+ Requires-Dist: passagemath-latte-4ti2; extra == "4ti2"
54
+ Provides-Extra: cddlib
55
+ Requires-Dist: passagemath-cddlib; extra == "cddlib"
56
+ Provides-Extra: latte
57
+ Requires-Dist: passagemath-polyhedra[latte_int]; extra == "latte"
58
+ Provides-Extra: latte-int
59
+ Requires-Dist: passagemath-latte-4ti2; extra == "latte-int"
60
+ Provides-Extra: normaliz
61
+ Requires-Dist: pynormaliz==2.21; extra == "normaliz"
62
+ Provides-Extra: palp
63
+ Requires-Dist: passagemath-palp; extra == "palp"
64
+ Provides-Extra: polymake
65
+ Requires-Dist: jupymake>=0.9; extra == "polymake"
66
+ Provides-Extra: ppl
67
+ Provides-Extra: topcom
68
+ Requires-Dist: passagemath-topcom; extra == "topcom"
69
+ Provides-Extra: cbc
70
+ Requires-Dist: passagemath-polyhedra[cbc_sage]; extra == "cbc"
71
+ Provides-Extra: cbc-sage
72
+ Requires-Dist: passagemath-coin-or-cbc; extra == "cbc-sage"
73
+ Provides-Extra: coin
74
+ Requires-Dist: passagemath-polyhedra[cbc_sage]; extra == "coin"
75
+ Provides-Extra: coin-sage
76
+ Requires-Dist: passagemath-polyhedra[cbc_sage]; extra == "coin-sage"
77
+ Provides-Extra: cplex
78
+ Requires-Dist: passagemath-polyhedra[cplex_sage]; extra == "cplex"
79
+ Provides-Extra: cplex-sage
80
+ Requires-Dist: passagemath-cplex; extra == "cplex-sage"
81
+ Provides-Extra: cvxopt
82
+ Requires-Dist: passagemath-polyhedra[cvxopt_sage]; extra == "cvxopt"
83
+ Provides-Extra: cvxopt-sage
84
+ Requires-Dist: cvxopt>=1.2.5; extra == "cvxopt-sage"
85
+ Provides-Extra: cvxpy
86
+ Requires-Dist: cvxpy; extra == "cvxpy"
87
+ Provides-Extra: glpk
88
+ Requires-Dist: passagemath-polyhedra[glpk_sage]; extra == "glpk"
89
+ Provides-Extra: glpk-sage
90
+ Provides-Extra: gurobi
91
+ Requires-Dist: passagemath-polyhedra[gurobi_sage]; extra == "gurobi"
92
+ Provides-Extra: gurobi-sage
93
+ Requires-Dist: passagemath-gurobi; extra == "gurobi-sage"
94
+ Provides-Extra: scip
95
+ Requires-Dist: PySCIPOpt; extra == "scip"
96
+ Provides-Extra: polytopes-db-4d
97
+ Requires-Dist: passagemath-polytopes-db-4d; extra == "polytopes-db-4d"
98
+ Provides-Extra: qq
99
+ Provides-Extra: zz
100
+ Provides-Extra: rdf
101
+ Requires-Dist: passagemath-polyhedra[cddlib]; extra == "rdf"
102
+ Provides-Extra: numberfield
103
+ Requires-Dist: passagemath-polyhedra[flint]; extra == "numberfield"
104
+ Provides-Extra: databases
105
+ Requires-Dist: passagemath-polyhedra[polytopes-db-4d]; extra == "databases"
106
+ Provides-Extra: graphs
107
+ Requires-Dist: passagemath-graphs; extra == "graphs"
108
+ Provides-Extra: groups
109
+ Requires-Dist: passagemath-groups; extra == "groups"
110
+ Provides-Extra: plot
111
+ Requires-Dist: passagemath-plot; extra == "plot"
112
+ Provides-Extra: standard
113
+ Requires-Dist: passagemath-polyhedra[RDF,flint,fpylll,glpk,graphs,groups,linbox,pari]; extra == "standard"
114
+ Requires-Dist: passagemath-plot[tachyon]; extra == "standard"
115
+
116
+ ====================================================================================================================
117
+ passagemath: Convex polyhedra in arbitrary dimension, mixed integer linear optimization
118
+ ====================================================================================================================
119
+
120
+ `passagemath <https://github.com/passagemath/passagemath>`__ is open
121
+ source mathematical software in Python, released under the GNU General
122
+ Public Licence GPLv2+.
123
+
124
+ It is a fork of `SageMath <https://www.sagemath.org/>`__, which has been
125
+ developed 2005-2025 under the motto “Creating a Viable Open Source
126
+ Alternative to Magma, Maple, Mathematica, and MATLAB”.
127
+
128
+ The passagemath fork uses the motto "Creating a Free Passage Between the
129
+ Scientific Python Ecosystem and Mathematical Software Communities."
130
+ It was created in October 2024 with the following goals:
131
+
132
+ - providing modularized installation with pip,
133
+ - establishing first-class membership in the scientific Python
134
+ ecosystem,
135
+ - giving `clear attribution of upstream
136
+ projects <https://groups.google.com/g/sage-devel/c/6HO1HEtL1Fs/m/G002rPGpAAAJ>`__,
137
+ - providing independently usable Python interfaces to upstream
138
+ libraries,
139
+ - offering `platform portability and integration testing
140
+ services <https://github.com/passagemath/passagemath/issues/704>`__
141
+ to upstream projects,
142
+ - inviting collaborations with upstream projects,
143
+ - `building a professional, respectful, inclusive
144
+ community <https://groups.google.com/g/sage-devel/c/xBzaINHWwUQ>`__,
145
+ - `empowering Sage users to participate in the scientific Python ecosystem
146
+ <https://github.com/passagemath/passagemath/issues/248>`__ by publishing packages,
147
+ - developing a port to `Pyodide <https://pyodide.org/en/stable/>`__ for
148
+ serverless deployment with Javascript,
149
+ - developing a native Windows port.
150
+
151
+ `Full documentation <https://passagemath.org/docs/latest/html/en/index.html>`__ is
152
+ available online.
153
+
154
+ passagemath attempts to support and provides binary wheels suitable for
155
+ all major Linux distributions and recent versions of macOS.
156
+
157
+ Binary wheels for native Windows (x86_64) are are available for a subset of
158
+ the passagemath distributions. Use of the full functionality of passagemath
159
+ on Windows currently requires the use of Windows Subsystem for Linux (WSL)
160
+ or virtualization.
161
+
162
+ The supported Python versions in the passagemath 10.6.x series are 3.10.x-3.13.x.
163
+
164
+
165
+ About this pip-installable distribution package
166
+ -----------------------------------------------
167
+
168
+ This pip-installable distribution ``passagemath-polyhedra`` is a distribution of a part of the Sage Library. It provides a small subset of the modules of the Sage library ("sagelib", `passagemath-standard`), sufficient for computations with convex polyhedra in arbitrary dimension (in exact rational arithmetic), and linear and mixed integer linear optimization (in floating point arithmetic).
169
+
170
+
171
+ What is included
172
+ ----------------
173
+
174
+ * `Combinatorial and Discrete Geometry <https://passagemath.org/docs/latest/html/en/reference/discrete_geometry/index.html>`_: Polyhedra, lattice polyhedra, lattice points in polyhedra, triangulations, fans, polyhedral complexes, hyperplane arrrangements
175
+
176
+ * `Parma Polyhedra Library (PPL) backends for rational polyhedra <https://passagemath.org/docs/latest/html/en/reference/discrete_geometry/sage/geometry/polyhedron/backend_ppl.html>`_, `lattice polygons <https://passagemath.org/docs/latest/html/en/reference/discrete_geometry/sage/geometry/polyhedron/ppl_lattice_polygon.html>`_, `lattice polytopes <https://passagemath.org/docs/latest/html/en/reference/discrete_geometry/sage/geometry/polyhedron/ppl_lattice_polytope.html>`_; via `pplpy <https://passagemath.org/docs/latest/html/en/reference/spkg/pplpy.html#spkg-pplpy>`_
177
+
178
+ * `Python backend for polyhedra over general ordered fields <https://passagemath.org/docs/latest/html/en/reference/discrete_geometry/sage/geometry/polyhedron/backend_field.html>`_
179
+
180
+ * `Linear, Mixed Integer Linear, and Semidefinite Optimization frontends <https://passagemath.org/docs/latest/html/en/reference/numerical/index.html#numerical-optimization>`_
181
+
182
+ * `GNU Linear Programming Kit (GLPK) backend for large-scale linear and mixed integer linear optimization (floating point arithmetic) <https://passagemath.org/docs/latest/html/en/reference/numerical/sage/numerical/backends/glpk_backend.html>`_
183
+
184
+ * `Interactive Simplex Method <https://passagemath.org/docs/latest/html/en/reference/numerical/sage/numerical/interactive_simplex_method.html>`_
185
+
186
+ * see https://github.com/passagemath/passagemath/blob/main/pkgs/sagemath-polyhedra/MANIFEST.in
187
+
188
+
189
+ Examples
190
+ --------
191
+
192
+ A quick way to try it out interactively::
193
+
194
+ $ pipx run --pip-args="--prefer-binary" --spec "passagemath-polyhedra[test]" ipython
195
+
196
+ In [1]: from sage.all__sagemath_polyhedra import *
197
+
198
+ In [2]: P = Polyhedron(ieqs=[[0, 1, 0, 0, 0, 0, 0], [0, 0, 1, 0, 0, 0, 0], [0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 1, 0, 0], [0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 1], [0, 0, 1, -1, -1, 1, 0], [0, 0, -1, 1, -1, 1, 0]], eqns=[[-31, 1, 1, 1, 1, 1, 1]]); P
199
+ Out[2]: A 5-dimensional polyhedron in QQ^6 defined as the convex hull of 7 vertices
200
+
201
+ In [3]: P.Vrepresentation()
202
+ Out[4]:
203
+ (A vertex at (31, 0, 0, 0, 0, 0),
204
+ A vertex at (0, 0, 0, 0, 0, 31),
205
+ A vertex at (0, 0, 0, 0, 31, 0),
206
+ A vertex at (0, 0, 31/2, 0, 31/2, 0),
207
+ A vertex at (0, 31/2, 31/2, 0, 0, 0),
208
+ A vertex at (0, 31/2, 0, 0, 31/2, 0),
209
+ A vertex at (0, 0, 0, 31/2, 31/2, 0))
210
+
211
+
212
+ Available as extras, from other distributions
213
+ ---------------------------------------------
214
+
215
+ Additional features
216
+ ~~~~~~~~~~~~~~~~~~~
217
+
218
+ ``pip install "passagemath-polyhedra[graphs]"``
219
+ Face lattices, combinatorial polyhedra, graph-theoretic constructions
220
+
221
+ ::
222
+
223
+ $ pipx run --pip-args="--prefer-binary" --spec "passagemath-polyhedra[graphs,test]" ipython
224
+
225
+ In [1]: from sage.all__sagemath_polyhedra import *
226
+
227
+ In [2]: c5_10 = Polyhedron(vertices = [[i, i**2, i**3, i**4, i**5] for i in range(1, 11)]); c5_10
228
+ Out[2]: A 5-dimensional polyhedron in ZZ^5 defined as the convex hull of 10 vertices
229
+
230
+ In [3]: c5_10_fl = c5_10.face_lattice(); [len(x) for x in c5_10_fl.level_sets()]
231
+ Out[3]: [1, 10, 45, 100, 105, 42, 1]
232
+
233
+ ``pip install "passagemath-polyhedra[graphs,groups]"``
234
+ Constructing symmetric polyhedra, computing automorphisms, lattice point counting modulo group actions
235
+
236
+ ::
237
+
238
+ $ pipx run --pip-args="--prefer-binary" --spec "passagemath-polyhedra[graphs,groups,test]" ipython
239
+
240
+ In [1]: from sage.all__sagemath_polyhedra import *
241
+
242
+ In [2]: P24 = polytopes.twenty_four_cell(); P24
243
+ Out[2]: A 4-dimensional polyhedron in QQ^4 defined as the convex hull of 24 vertices
244
+
245
+ In [3]: AutP24 = P24.restricted_automorphism_group(); AutP24.order()
246
+ Out[3]: 1152
247
+
248
+ ``pip install "passagemath-polyhedra[toric]"``
249
+ `Toric varieties <https://passagemath.org/docs/latest/html/en/reference/schemes/index.html#toric-varieties>`_
250
+
251
+ ::
252
+
253
+ $ pipx run --pip-args="--prefer-binary" --spec "passagemath-polyhedra[graphs,toric,test]" ipython
254
+
255
+ In [1]: from sage.all__sagemath_polyhedra import *
256
+
257
+ In [2]: TV3 = ToricVariety(NormalFan(lattice_polytope.cross_polytope(3))); TV3
258
+ Out[2]: 3-d toric variety covered by 6 affine patches
259
+
260
+ In [3]: TV3.is_orbifold()
261
+ Out[3]: False
262
+
263
+ ``pip install "passagemath-polyhedra[latte]"``
264
+ Installs `LattE integrale <https://passagemath.org/docs/latest/html/en/reference/spkg/latte_int.html#spkg-latte-int>`_
265
+ for lattice point counting and volume computation using generating function techniques.
266
+
267
+ ::
268
+
269
+ $ pipx run --pip-args="--prefer-binary" --spec "passagemath-polyhedra[latte,test]" ipython
270
+
271
+ In [1]: from sage.all__sagemath_polyhedra import *
272
+
273
+ In [2]: P = polytopes.cube()
274
+
275
+ In [3]: P.integral_points_count()
276
+ Out[3]:
277
+ 27
278
+
279
+ In [4]: (1000000000*P).integral_points_count(verbose=True)
280
+ This is LattE integrale...
281
+ ...
282
+ Total time:...
283
+ Out[4]:
284
+ 8000000012000000006000000001
285
+
286
+
287
+ Additional backends for polyhedral computations
288
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
289
+
290
+ ``pip install "passagemath-polyhedra[normaliz]"``
291
+ `Normaliz <https://passagemath.org/docs/latest/html/en/reference/spkg/normaliz.html#spkg-normaliz>`_, via `PyNormaliz <https://passagemath.org/docs/latest/html/en/reference/spkg/pynormaliz.html#spkg-pynormaliz>`_,
292
+ provides very fast computations in particular for polyhedra with data in algebraic number fields.
293
+
294
+ ::
295
+
296
+ $ pipx run --pip-args="--prefer-binary" --spec "passagemath-polyhedra[normaliz,test]" ipython
297
+
298
+ In [1]: from sage.all__sagemath_polyhedra import *
299
+
300
+ In [2]: gap_norm = polytopes.grand_antiprism(backend='normaliz'); gap_norm
301
+
302
+ In [3]: gap_norm.f_vector()
303
+
304
+ ``pip install "passagemath-polyhedra[cddlib]"``
305
+ cddlib provides support for computations with polyhedra in floating-point arithmetic.
306
+
307
+ ::
308
+
309
+ $ pipx run --pip-args="--prefer-binary" --spec "passagemath-polyhedra[cddlib,test]" ipython
310
+
311
+ In [1]: from sage.all__sagemath_polyhedra import *
312
+
313
+ In [2]: P1 = polytopes.regular_polygon(5, exact=False); P1
314
+ Out[2]: A 2-dimensional polyhedron in RDF^2 defined as the convex hull of 5 vertices
315
+
316
+ ``pip install "passagemath-polyhedra[lrslib]"``
317
+ `lrslib <https://passagemath.org/docs/latest/html/en/reference/spkg/lrslib.html#spkg-lrslib>`_
318
+ can be used for polytope volume computations and for enumerating Nash equilibria.
319
+
320
+ ::
321
+
322
+ $ pipx run --pip-args="--prefer-binary" --spec "passagemath-polyhedra[flint,lrslib,test]" ipython
323
+
324
+ In [1]: from sage.all__sagemath_polyhedra import *
325
+
326
+ In [2]: A = matrix([[2, 1], [1, 5/2]]); B = matrix([[-1, 3], [2, 1]])
327
+
328
+ In [3]: g = NormalFormGame([A, B]); g.obtain_nash(algorithm='lrs')
329
+ Out[3]: [[(1/5, 4/5), (3/5, 2/5)]]
330
+
331
+ ``pip install "passagemath-polyhedra[polymake]"``
332
+ `Polymake <https://passagemath.org/docs/latest/html/en/reference/spkg/polymake.html#spkg-polymake>`_, via `JuPyMake <https://pypi.org/project/JuPyMake/>`_
333
+
334
+ This currently requires a separate installation of polymake.
335
+
336
+ Optional backends for optimization
337
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
338
+
339
+ ``pip install "passagemath-polyhedra[cbc]"``
340
+ `COIN/OR CBC <https://passagemath.org/docs/latest/html/en/reference/spkg/cbc.html#spkg-cbc>`_ Mixed Integer Linear Optimization solver,
341
+ via `sage_numerical_backends_coin <https://passagemath.org/docs/latest/html/en/reference/spkg/sage_numerical_backends_coin.html#spkg-sage-numerical-backends-coin>`_
342
+
343
+ ``pip install "passagemath-polyhedra[cplex]"``
344
+ CPLEX Mixed Integer Optimization solver (proprietary; requires licensed installation),
345
+ via `sage_numerical_backends_cplex <https://passagemath.org/docs/latest/html/en/reference/spkg/sage_numerical_backends_cplex.html#spkg-sage-numerical-backends-cplex>`_
346
+
347
+ ``pip install "passagemath-polyhedra[cvxpy]"``
348
+ `CVXPy <https://passagemath.org/docs/latest/html/en/reference/spkg/cvxpy.html#spkg-cvxpy>`_ as middle-end for `various backends <https://www.cvxpy.org/install/>`_
349
+
350
+ ``pip install "passagemath-polyhedra[gurobi]"``
351
+ Gurobi Mixed Integer Optimization solver (proprietary; requires licensed installation), via `sage_numerical_backends_gurobi <https://passagemath.org/docs/latest/html/en/reference/spkg/sage_numerical_backends_gurobi.html#spkg-sage-numerical-backends-gurobi>`_
352
+
353
+ ``pip install "passagemath-polyhedra[scip]"``
354
+ `SCIP <https://passagemath.org/docs/latest/html/en/reference/spkg/scip.html#spkg-scip>`_ Mixed Integer Optimization solver,
355
+ via `PySCIPOpt <https://passagemath.org/docs/latest/html/en/reference/spkg/pyscipopt.html#spkg-pyscipopt>`_
356
+
357
+
358
+ Development
359
+ -----------
360
+
361
+ ::
362
+
363
+ $ git clone --origin passagemath https://github.com/passagemath/passagemath.git
364
+ $ cd passagemath
365
+ passagemath $ ./bootstrap
366
+ passagemath $ python3 -m venv polyhedra-venv
367
+ passagemath $ source polyhedra-venv/bin/activate
368
+ (polyhedra-venv) passagemath $ pip install -v -e pkgs/sagemath-polyhedra