Skip to main content

optimise_cycle_with

Function optimise_cycle_with 

Source
pub fn optimise_cycle_with(
    entry: &MachineEntry,
    cfg: &Config,
    options: &OptimiseOptions,
) -> Result<Optimised, ConfigError>
Expand description

optimise_cycle, and with options.robust a result that passes in the error bands: the fastest setting found is judged with verdict_bands over the config’s [bounds]; where it fails, the accepted steps of the search are gone back one at a time, each judged in the bands, until one passes (2 n + 1 cycles each, n the bounds). With options.pareto, every setting run that passes every verdict, and a sweep of slower ones from the result (its acceleration and jerk, and all three limits, at 0.8, 0.6 and 0.4 times: six cycles more), give the front of cycle time against energy and peak utilisation (Optimised::front).

Where the config has obstacles, a lift is lowered no further than its traverse keeps the clearance to them (over_obstacles): a box under the traverse puts the lift at its top plus the clearance plus how far the machine’s lowest collision body reaches below the tool. A lift that an obstacle raises is tried rounded through a via point over that obstacle as well, its ends at the clearance above pick and place; every via point’s path is checked against the obstacles before it runs.

With options.worst the accepted steps are judged at the worst corner from the fastest down (fastest_passing).