Self-consistent Formulation of Constricted Variational Density Functional Theory with Orbital Relaxation. Implementation and Applications.