add energies and solver for unconstrained optimization