Fixed energy cost function