XKTR_PARAM_HESSOPT
| 
     Description
     | 
     Specifies how to compute the (approximate) Hessian of the Lagrangian.
     | ||||||||||||
| 
     Type
     | 
     Integer
     | ||||||||||||
| 
     Values
     | 
 | ||||||||||||
| 
     Default value
     | 
     1
     | ||||||||||||
| 
     Note
     | 
      Options hessopt = 4 and hessopt = 5 are not available with the Interior/Direct algorithm. Knitro usually performs best when the user provides exact Hessians (hessopt = 1) or exact Hessian-vector products (hessopt = 5). If neither can be provided but exact gradients are available (i.e., gradopt = 1), then hessopt = 4 is recommended. This option is comparable in terms of robustness to the exact Hessian option and typically not much slower in terms of time, provided that gradient evaluations are not a dominant cost. If exact gradients cannot be provided, then one of the quasi-Newton options is preferred. Options hessopt = 2 and hessopt = 3 are only recommended for small problems (n
     ≤ 1000) since they require working with a dense Hessian approximation. Option hessopt = 6 should be used for large problems.
     | 
 
