pub(crate) fn optimise(args: &Args, tr: &Translations) -> Result<(), Failure>Expand description
optimise <machine>: a shorter cycle that still passes every verdict, found by trying corner blending
and higher axis limits, with input shaping where a faster setting fails on settling alone, lower lifts down to
profile.min_clearance_m and lifts rounded through a via point (--runs N cycles at most, 40 by default). Prints
the cycle time and what to change in the config; per changed lift its segments, height before and after, and via point.
The result passes every verdict in the error bands of the config’s [bounds] too: where the fastest setting found
fails there, the search’s steps are gone back to the fastest that passes (rows bands_*, and on the error stream
what the bands cost). --worst judges at the worst corner of all bounds at once instead (verdict_worst, rows
worst_*), judging the search’s steps from the fastest down. --nominal judges the config as written alone. --pareto FILE
writes the settings that no other beats in cycle time, energy per cycle from the supply and peak motor utilisation at once, as CSV.