--------------------------------------------------- lines 6-25 of file: example/user/ran_constraint.cpp --------------------------------------------------- {xrst_begin ran_constraint.cpp} Constraints On Random Effects: Example and Test ############################################### This example demonstrates :ref:`problem@Maximum Likelihood@Random Constraints` . To be specific, it demonstrates a case where the constraints ensure that the sum of the :ref:`optional random effects` is zero. In addition, for the same case without the constraint, the optimal random effects do not satisfy this condition. {xrst_literal // BEGIN C++ // END C++ } {xrst_end ran_constraint.cpp}