[Paper Review] PHCpack in Macaulay2
This paper presents PHCpack, a Macaulay2 package that integrates the PHCpack polynomial system solver using numerical homotopy continuation, enabling efficient numerical solutions for large polynomial systems. It provides black-box solving, mixed volume computation, solution filtering, path tracking, and numerical irreducible decomposition, with performance demonstrated on systems up to 21 variables and 67 solutions.
The Macaulay2 package PHCpack.m2 provides an interface to PHCpack, a general-purpose polynomial system solver that uses homotopy continuation. The main method is a numerical blackbox solver which is implemented for all Laurent systems. The package also provides a fast mixed volume computation, the ability to filter solutions, homotopy path tracking, and a numerical irreducible decomposition method. As the size of many problems in applied algebraic geometry often surpasses the capabilities of symbolic software, this package will be of interest to those working on problems involving large polynomial systems.
Motivation & Objective
- To provide a high-performance interface between Macaulay2 and PHCpack for solving large polynomial systems numerically.
- To address the limitations of symbolic software in handling large-scale problems in applied algebraic geometry.
- To support advanced numerical algebraic geometry tasks such as solution filtering, path tracking, and irreducible decomposition.
- To enable efficient computation of mixed volumes as an upper bound on isolated solutions in the torus.
- To allow users to access low-level PHCpack functionality through a high-level Macaulay2 interface with full diagnostic feedback.
Proposed method
- Uses numerical homotopy continuation to track paths from known solutions of a start system to solutions of the target system.
- Employs a black-box solver that automatically constructs the start system and homotopy, abstracting complexity from the user.
- Implements fast mixed volume computation using polyhedral methods, with support for both standard and stable mixed volumes.
- Provides solution filtering via zeroFilter and nonZeroFilter to isolate solutions based on coordinate magnitude.
- Supports refinement of solutions to higher precision using refineSolutions, with coefficient re-computation at increased precision.
- Enables numerical irreducible decomposition via monodromy-based breakup, returning WitnessSets for each irreducible component.
Experimental results
Research questions
- RQ1How can numerical homotopy continuation be effectively integrated into the Macaulay2 environment for solving large polynomial systems?
- RQ2To what extent can mixed volume computation serve as a fast, reliable upper bound on the number of isolated solutions in the torus?
- RQ3Can numerical irreducible decomposition via PHCpack accurately recover the dimension and degree of algebraic varieties defined by polynomial systems?
- RQ4How efficiently does the interface handle systems with rational coefficients and high-precision solution refinement?
- RQ5What is the performance gain of using numerical methods over symbolic computation for large, zero-dimensional systems?
Key findings
- The solveSystem function successfully computed 67 isolated solutions for a 21-variable system in 0.056 seconds, confirming the system's degree as 67.
- Mixed volume computation for the same system completed in 0.011 seconds and yielded a bound of 75, exceeding the actual number of isolated solutions.
- Symbolic degree computation for the same system took 767.432 seconds, highlighting the performance advantage of numerical methods.
- Solution refinement using refineSolutions reduced the 12th coordinate of a solution from 2.23e-20 to 1.43e-67, confirming numerical stability and precision.
- Numerical irreducible decomposition correctly identified three irreducible components of dimension 5 with degrees 4, 2, and 2, matching symbolic primary decomposition.
- The interface allows full access to PHCpack’s capabilities through temporary files, enabling users to inspect raw computation logs and diagnostics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.