(w,ns) = topWitnessSet(f,k)
The method topWitnessSet constructs an embedding for the given polynomial system with the given dimension, and then computes generic points on the solution set.
The computation of a witness set for the twisted cubic is illustrated below.
|
|
|
|
|
|
|
|
A witness set for the twisted cubic consists of the embedded system, a random linear hyperplane to slice the space curve, and three generic points. Observe that the value for the last coordinate of all points equals (or is close to) zero. This last coordinate corresponds to the added slack variable zzk. Solutions with a nonzero value for the slack variable are called nonsolutions. In the example above, the list of nonsolutions returned in ns by topWitnessSet was empty.
Often the solution of the embedded system leads to solutions with nonzero slack variables, as illustrated in the next example.
|
|
|
|
|
The example is constructed to contain not only the twisted cubic, but also at least one isolated point (2,2,2). This is reflected in the list of nonsolutions.
The nonsolutions may be used as start solutions in a cascade of homotopies to find generic points on lower dimensional components.
The object topWitnessSet is a method function with options.