ENH: added optimization from a previous solution