serdata)</pre><p>They should return:</p>
         <div>
            <ul>
               <li>function values of all constraints (<b>nonlinear followed by linear</b>) as a   vector <tt>g</tt> of dimensions <tt>(NgNLN+NgLIN) x 1</tt>,
               </li>
               <li>gradients of all constraints as a (possibly sparse) matrix <tt>dg</tt> of   dimensions <tt>(Nx+NYnnz) x (NgNLN+NgLIN)</tt>,
               </li>
               <li>hessian of the <tt>k</tt>-th nonlinear (function) constraint (<tt>k=1..NgNLN