File: cyclic10.m2

package info (click to toggle)
macaulay2 1.21%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 133,096 kB
  • sloc: cpp: 110,377; ansic: 16,306; javascript: 4,193; makefile: 3,821; sh: 3,580; lisp: 764; yacc: 590; xml: 177; python: 140; perl: 114; lex: 65; awk: 3
file content (171 lines) | stat: -rw-r--r-- 5,838 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
restart ---------------------------------------------------------------------
load "../cyclic.m2"
nedges = 3
setRandomSeed 0
polys = parametrizedCyclic 10 
(p0,x0) = createSeedPair polySystem polys
elapsedTime mixedVolume = computeMixedVolume specializeSystem (p0,polys)
elapsedTime (V,npaths) = monodromySolve(polys,p0,{x0},NumberOfEdges=>nedges,
    NumberOfNodes=>2, TargetSolutionCount=>mixedVolume, Verbose=>true)
getTrackTime V.Graph
-* -- Anton's office machine:
mixedVolume = 35940
-- 610.357 seconds elapsed
o7 = (HomotopyNode{...5...}, 107820)
08 = 579.812715933
*-

restart ---------------------------------------------------------------------
load "../cyclic.m2"
nedges = 4
setRandomSeed 0
polys = parametrizedCyclic 10 
(p0,x0) = createSeedPair polySystem polys
elapsedTime mixedVolume = computeMixedVolume specializeSystem (p0,polys)
elapsedTime (V,npaths) = monodromySolve(polys,p0,{x0},NumberOfEdges=>nedges,
    NumberOfNodes=>2, TargetSolutionCount=>mixedVolume, Verbose=>true)
getTrackTime V.Graph
-* -- Anton's office machine:

     -- 610.323 seconds elapsed (track, 3.9G)
     -- 740.461 seconds elapsed

o7 = (HomotopyNode{...5...}, 129910)
o8 = 704.35711509
*-

restart ---------------------------------------------------------------------
load "../cyclic.m2"
nedges = 4
setRandomSeed 0
polys = parametrizedCyclic 10 
(p0,x0) = createSeedPair polySystem polys
elapsedTime mixedVolume = computeMixedVolume specializeSystem (p0,polys)
elapsedTime (V,npaths) = monodromySolve(polys,p0,{x0},NumberOfEdges=>nedges,TargetSolutionCount=>mixedVolume,
    NumberOfNodes=>2, SelectEdgeAndDirection=>selectBestEdgeAndDirection, Verbose=>true, 
    Potential=>potentialE)
getTrackTime V.Graph
-*
     -- 617.643 seconds elapsed

o9 = (HomotopyNode{...5...}, 107640)

trackHomotopy:
     -- 1083.45 seconds elapsed
     o7 = (HomotopyNode{...5...}, 107700)
     o8 = 585.668276680999
*-

restart --- PotentialE, BatchSize => 1 ----------------------------------------------------
load "../cyclic.m2"
nedges = 4
setRandomSeed 0
polys = parametrizedCyclic 10 
(p0,x0) = createSeedPair polySystem polys
elapsedTime mixedVolume = computeMixedVolume specializeSystem (p0,polys)
elapsedTime (V,npaths) = monodromySolve(polys,p0,{x0},NumberOfEdges=>nedges,TargetSolutionCount=>mixedVolume,
    NumberOfNodes=>2, SelectEdgeAndDirection=>selectBestEdgeAndDirection, -- Verbose=>true, 
    Potential=>potentialE, BatchSize=>1)
getTrackTime V.Graph
-*
trackHomotopy:
     -- 3784.71 seconds elapsed
o7 = (HomotopyNode{...5...}, 104739)
o8 = 576.537621946002
*-

restart ---------------------------------------------------------------------
load "../cyclic.m2"
nedges = 4
setRandomSeed 0
polys = parametrizedCyclic 10 
(p0,x0) = createSeedPair polySystem polys
elapsedTime mixedVolume = computeMixedVolume specializeSystem (p0,polys)
elapsedTime  monodromySolve(polys,p0,{x0},NumberOfEdges=>nedges,TargetSolutionCount=>mixedVolume,
    NumberOfNodes=>2, SelectEdgeAndDirection=>selectBestEdgeAndDirection, 
    Potential=>makeBatchPotential 100, BatchSize=>100, Verbose=>true)
-*
trackHomotopy:
     -- 700.332 seconds elapsed

o21 = (HomotopyNode{...5...}, 94889)
4.3G
*-

restart ---------------------------------------------------------------------
load "../cyclic.m2"
nedges = 4
setRandomSeed 0
polys = parametrizedCyclic 10 
(p0,x0) = createSeedPair polySystem polys
elapsedTime mixedVolume = computeMixedVolume specializeSystem (p0,polys)
elapsedTime  monodromySolve(polys,p0,{x0},NumberOfEdges=>nedges,TargetSolutionCount=>mixedVolume,
    NumberOfNodes=>2, SelectEdgeAndDirection=>makeRandomizedSelect 0.1, 
    Potential=>potentialE, BatchSize=>100, Verbose=>true)

-*
trackHomotopy:
     -- 656.717 seconds elapsed

o7 = (HomotopyNode{...5...}, 110192)
4.1G
*-

restart ------make failure rate high ---------------------------------------------------------------
load "../cyclic.m2"
nedges = 4
setRandomSeed 0
polys = parametrizedCyclic 10 
(p0,x0) = createSeedPair polySystem polys
elapsedTime mixedVolume = computeMixedVolume specializeSystem (p0,polys)
setDefault(tStepMin=>0.005)
elapsedTime monodromySolve(polys,p0,{x0},NumberOfEdges=>nedges,TargetSolutionCount=>mixedVolume,
     NumberOfNodes=>2, Verbose=>true)

-*
     -- 802.092 seconds elapsed

o8 = (HomotopyNode{...5...}, 162038)
*-

restart --- naive ------------------------------------------------------------------
load "../cyclic.m2"
setRandomSeed 0
polys = parametrizedCyclic 10 
(p0,x0) = createSeedPair polySystem polys
elapsedTime mixedVolume = computeMixedVolume specializeSystem (p0,polys)
elapsedTime (V,npaths) = dynamicFlowerSolve(polys.PolyMap,p0,{x0},TargetSolutionCount=>mixedVolume);
npaths
-* -- Anton's office machine:
-- 2376.16 seconds elapsed
i11 : npaths
o11 = 299873
*-


restart ---PHCpack------------------------------------------------------------------
load "../cyclic.m2"
needsPackage "PHCpack"
polys = parametrizedCyclic 10 
(p0,x0) = createSeedPair polySystem polys
specPolys = specializeSystem (p0,polys)
R = CC[x_1..x_(numgens ring first specPolys)]
toR = map(R,ring first specPolys,vars R)
elapsedTime (mv,q,qsols) = mixedVolume(specPolys/toR,StartSystem => true);

-*
i8 : elapsedTime (mv,q,qsols) = mixedVolume(specPolys/toR,StartSystem => true);
     -- 538.198 seconds elapsed
*-

restart ---linear tracker in PHCpack------------------------------------------------------------------
load "../cyclic.m2"
-- setDefault(Software=>PHCPACK) -- if this is HERE we get SIGSEGV
nedges = 3
setRandomSeed 0
polys = parametrizedCyclic 10
(p0,x0) = createSeedPair polySystem polys
elapsedTime mixedVolume = computeMixedVolume specializeSystem (p0,polys)
debug Core
setDefault(Software=>PHCPACK)
elapsedTime (G,npaths) = monodromySolve(polys,p0,{x0},NumberOfEdges=>nedges,TargetSolutionCount=>mixedVolume, Verbose=>true, NumberOfNodes=>2)