Polymake


polymake is a software for the algorithmic treatment of convex polyhedra.
Albeit primarily a tool to study the combinatorics and the geometry of convex polytopes and polyhedra, it is by now also capable of dealing with simplicial complexes, matroids, polyhedral fans, graphs, tropical objects, toric varieties and other objects. In particular, its capability to compute the convex hull and lattice points of a polytope proved itself to be quite useful for different kinds of research.
polymake has been cited in over 300 recent articles indexed by Zentralblatt MATH as can be seen from its entry in the swMATH database.

Special features and applications

polymake exhibits a few particularities, making it special to work with.
Firstly, polymake can be used within a Perl script. Moreover, users can extend polymake and define new objects, properties, rules for computing properties, and algorithms.
Secondly, it exhibits an internal client-server scheme to accommodate the usage of Perl for object management and interfaces as well as C++ for mathematical algorithms. The server holds information about each object, and the client sends requests to compute properties. The server has the job of determining how to complete each request from information already known about each object using a rule-based system. For example, there are many rules on how to compute the facets of a polytope. Facets can be computed from a vertex description of the polytope, and from a inequality description. polymake builds a dependency graph outlining the steps to process each request and selects the best path via a Dijkstra-type algorithm.
polymake divides its collection of functions and objects into 10 different groups called applications. They behave like C++ namespaces. The polytope application was the first one developed and it is the largest.Common: "helper" functions used in other applications.Fan: functions for polyhedral complexes, planar drawings of 3-polytopes, polyhedral fans, and subdivisions of points or vectors.Fulton: computations with normal toric varieties. It is named after William Fulton, author "Introduction to Toric Varieties".Graph: manipulation of directed and undirected graphs.Group: focus on finite permutation groups. Basic properties of a group can be calculated like characters and conjugacy classes.Ideal: computations on polynomial ideals: Gröbner basis, Hilbert polynomial, and radicals.Matroid: computation of standard properties of a matroid, like bases and circuits. This application can also compute more advanced properties like the Tutte polynomial of a matroid and realizing the matroid with a polytope.Polytope: over 230 functions or calculations that can be done with a polytope. These functions range in complexity from simply calculating basic information about a polytope to combinatorial or algebraic properties. There are also many visualization options.Topaz: functions relating to abstract simplicial complexes. Many advanced topological calculations over simplicial complexes can be performed like homology groups, orientation and fundamental group. There is also a combinatorial collection of properties that can be computed, like a shelling and Hasse diagrams.Tropical: functions for exploring tropical geometry; in particular, tropical hypersurfaces and tropical cones.

Development History

polymake version 1.0 first appeared in the proceedings of DMV-Seminar "Polytopes and Optimization" held in Oberwolfach, November 1997. Version 1.0 only contained the polytope application, but the system of "applications" was not yet developed. Version 2.0 was in July 2003, and version 3.0 was released in 2016. The last big revision, version 4.0, was released in January 2020.

Interaction with other software packages

polymake is highly modularly built and, therefore, displays great interaction with third party software packages for specialized computations, thereby providing a common interface and bridge between different tools. A user can easily switch between using different software packages in the process of computing properties of a polytope.

Used within polymake

Below is a list of third-party software packages that polymake can interface with as of version 4.0. Users are also able to write new rule files for interfacing with any software package. Note that there is some redundancy in this list. Because polymake uses rule files and a dependency graph for computing properties, most of these software packages are optional. However, some become necessary for specialized computations.

Used in conjunction with polymake

  • : allows polymake within Jupyter notebooks.
  • : Open Source Computer Algebra Research system currently under development
  • : package for using polymake in GAP.
  • : GUI viewer for polymake fies.