Canonical Restricted Open-shell Hartree–Fock equation
The treatment found in Szabo-Ostlund, although perhaps it is not explicitly stated, is appropriate only for non-degenerate spin-singlet electronic states, which in the Hartree-Fock method correspond to closed-shell systems.
For open-shell systems one may use the restricted open-shell Hartree-Fock method (ROHF), which is somewhat more complicated. In particular, in the ROHF method six arbitrary constants have to be introduced. Many choices for these parameters have been suggested.
The total ROHF energy, as well as the overall ROHF wave function and therefore the expectation value of any operator, are independent of these six parameters, so that all these ROHF sub-variants are largely equivalent.
However, the six parameters affect the Hartree-Fock orbitals and their orbital energies. Also, approximate post-HF methods such as MP2 or CISD will depend on the particular choice of those six parameters.
Knowles et al suggested in 1991 a particular choice leading to called &quot;semi-canonical orbitals&quot; whose orbital energies do obey Koopmans theorem and which are also a good choice for MP2 calculations.
I suggest the following paper for an introduction to the problem (the paper by Knowles metioned above is ref. 18):
T. Tsuchimochi and G. E. Scuseria, ROHF Theory Made Simple, J. Chem. Phys. 133, 141102 (2010) https://arxiv.org/abs/1008.1607
The paper above shows that one can obtain semi-canonical ROHF orbitals by a minor modification of the unrestricted Hartree-Fock method and that this approach is numerically very stable.