Add: SimulatedAnnealing now handles getEnergy. Update: result_ becomes a pointer to avoid copying.