On entry

mode

indicates whether fCon or fCon or both must be assigned during the present call of funcon (0mode 2).  This parameter can be ignored if Derivative linesearch is selected (the default) and if Derivative level = 2 or 3.  In this case, mode will always have the value 2, and all elements of fCon and fCon must be assigned (except perhaps constant elements of fCon).

Otherwise, snopt will call funcon with mode =0, 1 or 2. You may test mode to decide what to do:

If mode = 2, assign fCon and the known components of gCon.

If mode = 1, assign the known components of gConfCon is not required and is ignored.

If mode = 0, only fCon need be assigned; gCon is ignored.

nnCon

is the number of nonlinear constraints (nnCon > 0).  These must be the first nnCon constraints in the problem. 

nnJac

is the number of variables involved in F(x) (0 < nnJac n). These must be the first nnJac variables in the problem. 

neJac

is the value nnCon*nnJac

x(nnJac)

contains the nonlinear Jacobian variables x.  The array x must not be altered.

nState

is used as in funobj

cu(lencu), iu(leniu), ru(lenru)

are the same as in funobj