Macaulay2 » Documentation
Packages » MonodromySolver :: getTrackTime
next | previous | forward | backward | up | index | toc

getTrackTime -- elapsed time taken by solver

Description

This only works on graphs which have been modified by a solver.

i1 : setRandomSeed 0;
 -- setting random seed to 0
i2 : declareVariable \ {A,B,C,D,X,Y};
i3 : F = gateSystem(matrix{{A,B,C,D}},matrix{{X,Y}},matrix{{A*(X-1)^2-B}, {C*(Y+2)^2+D}});
i4 : (p0,x0) = createSeedPair F;
i5 : time (V,npaths) = monodromySolve(F,p0,{x0},NumberOfEdges=>3,NumberOfNodes=>5,TargetSolutionCount=>4,Verbose=>false);
 -- used 0.0439195s (cpu); 0.0439171s (thread); 0s (gc)
i6 : getTrackTime V.Graph

o6 = .005234058000000001

o6 : RR (of precision 53)

time measures the elapsed time for the whole call, including graph construction, and other overhead. getTrackTime reports only the cumulative time spent tracking paths along edges of the homotopy graph.

See also

Ways to use getTrackTime:

  • getTrackTime(HomotopyGraph)

For the programmer

The object getTrackTime is a method function.


The source of this document is in MonodromySolver/Documentation.m2:601:0.