Library for Polynomial System Solving through Algebraic Methods
Library for Polynomial System Solving through Algebraic Methods
| Documentation |
|---|
msolve is an open source C library implementing computer algebra algorithms
for solving polynomial systems (with rational coefficients or coefficients in a
prime field).
Currently, with msolve, you can basically solve multivariate polynomial systems.
This encompasses:
A tutorial is available here
Some of the functionalities of msolve are already available in the computer algebra systems Oscar and SageMath. See below for some more information about this.
See the INSTALL file. At the moment, msolve does not support 32 bit architectures.
More informations are given in the tutorial (see https://msolve.lip6.fr)
msolve input files need to be of the following format:
1st line: variables as commata separated list, e.g. x1,x2,x3,x4,y1,y2.
2nd line: field characteristic, e.g. 0.
following lines: generating polynomials, all but the last one need
to terminate by a ,, e.g.
x1,x2,x3,x4,y1,y2
101
x1+x2+x3+x4,
2*y1-145*y2Polynomials may be multiline, thus , as a separator.
Coefficients can be rational, using /, e.g. -2/3*x2*y1^2+....
In each polynomial, a single occurrence of each monomial is expected; the
behaviour of msolve's parser is undefined if some monomial is repeated, as in
x1+x2+x3+x4-x1.
Some basic commands are as follows:
./msolve -f in.ms -o out.mswill:
msolve will isolate the real solutionsmsolve will compute a parametrization of the solutionsAll output data are displayed in the file out.ms
The -vflag allows you to control the verbosity, giving insight on what msolve
is doing. Try this.
./msolve -v 2 -f in.ms -o out.msmsolve computes Groebner bases when the base field is either the field of rational numbers
or a prime field
(characteristic should be less than 2^31).
The following command
./msolve -g 1 -f in.ms -o out.mswill compute the leading monomials of the reduced Groebner basis of the ideal
generated by the input system in in.ms for the so-called graded reverse
lexicographic ordering.
This allows you to deduce the dimension of the solution set to the input
polynomials (in an algebraic closure of the base field) as well as the degree
of the ideal they generate.
Using the -g 2 flag as follows
./msolve -g 2 -f in.ms -o out.mswill return the reduced Groebner basis for the graded reverse lexicographic ordering.
msolve also allows you to perform Groebner bases computations using
one-block elimination monomial order
thanks to the -e flag. The following command
./msolve -e 1 -g 2 -f in.ms -o out.mswill perform the Groebner basis computation eliminating the first variable.
More generally, using -e k will eliminate the first k variables.
When the input polynomial system has rational coefficients and when
it has finitely many complex solutions, msolve will, by default,
compute the real solutions to the input system. Those are encoded with
isolating boxes for all coordinates to all real solutions.
For instance, on input file in.ms as follows
x, y
0
x^2+y^2-4,
x*y-1the call ./msolve -f in.ms -o out.ms will display in the file out.ms the following
output
…which are the 4 isolating boxes of the 4 exact roots whose numerical approximations are
(-0.5176380902, -1.931851653), (-1.931851653, -0.5176380902),
(1.931851653, 0.5176380902) and (0.5176380902, 1.931851653).
Several components of msolve are parallelized through multi-threading.
Typing
./msolve -t 4 -f in.ms -o out.mstells msolve to use 4 threads. Multi-threading in msolve is used in
msolve in AlgebraicSolvingAlgebraicSolving is a Julia package
that wraps msolve and provides some more functionality like
normal form computations, Hilbert series and Krull dimension, or
computing rational solutions to zero-dimensional systems of polynomial
equations.
It contains also some more contributions by Rafel Mohr and Rémi Prébet providing advanced algorithms for computing equidimensional decomposition of polynomial ideals as well as algorithms for analyzing the connectivity of real algebraic sets.
See here for more information and documentation.
msolve in Oscarmsolve is used in Oscar to solve
polynomial systems with rational coefficients.
It will detect if the input system has finitely many complex solutions, in which case
it will output a rational parametrization of the solution set as well as the
real solutions to the input system (see msolve's
tutorial here).
You can have a look at this and the documentation of Oscar.
Here is how you can use it.
…msolve in SageMathSageMath is a free open-source mathematics software system.
When you have msolve installed, it is used by SageMath
when you call the Variety function for solving polynomial systems with real
coefficients.
You can have a look here and here
See also
here
for a documentation on how to solve systems of polynomial equations in
SageMath using msolve.
We are grateful to Marc Mezzarobba who initiated the usage of
msolvein SageMath
and the whole development team of SageMath,
in particular those involed
in this ticket
msolve in Macaulay2Macaulay2 is a software system devoted to support research in algebraic geometry and commutative algebra.
It comes now with an msolve package providing to the users of
Macaulay2 functionalities offered by msolve.
See
here
for a full documentation on this package and how to use msolve in Macaulay2.
msolveIf you have used msolve in the preparation of some paper, we are grateful that you
cite it as follows:
msolve: A Library for Solving Polynomial Systems,
J. Berthomieu, C. Eder, M. Safey El Din, Proceedings of the
46th International Symposium on Symbolic and Algebraic Computation (ISSAC),
pp. 51-58, ACM, 2021.or, if you use BibTeX entries:
…The paper can be downloaded here.
The development of msolve is supported by the Forschungsinitiative
Rheinland-Pfalz
and the Agence Nationale de la Recherche.
No open issues yet, or sync has not completed.