Registre de correu electrònic: Appropriate constraints for variational optimization of electronic density matrices and electron densities