Utility function to define the least-squares loss function to be optimized for simvcd()
simvcd()
Useful links