It is suggested that Walker's consolidation-based enhancement of memory during REM sleep corresponds to the simulated annealing technique used for function optimization, and that robotic and Al design could benefit from inclusion of a deliberate REM-like memory optimization phase.