Total energy constrain