e04vdm Method
関数リスト一覧   NagLibrary Namespaceへ  ライブラリイントロダクション  本ヘルプドキュメントのchm形式版

nAG supplied method for use with the callback parameter: confun.

Syntax

C#
public static void e04vdm(
	ref int mode,
	int ncnln,
	int n,
	double[] x,
	double[] c,
	double[,] cjac,
	int nstate
)
Visual Basic (Declaration)
Public Shared Sub e04vdm ( _
	ByRef mode As Integer, _
	ncnln As Integer, _
	n As Integer, _
	x As Double(), _
	c As Double(), _
	cjac As Double(,), _
	nstate As Integer _
)
Visual C++
public:
static void e04vdm(
	int% mode, 
	int ncnln, 
	int n, 
	array<double>^ x, 
	array<double>^ c, 
	array<double,2>^ cjac, 
	int nstate
)
F#
static member e04vdm : 
        mode:int byref * 
        ncnln:int * 
        n:int * 
        x:float[] * 
        c:float[] * 
        cjac:float[,] * 
        nstate:int -> unit 

Parameters

mode
Type: System..::.Int32 %
mode is a flag that you may set within confun to indicate a failure in the evaluation of the nonlinear constraints.
On entry: is always non-negative.
On exit: if mode is negative on exit from confun, then execution of e04vdm will be terminated with ifail containing the negative value of mode.
ncnln
Type: System..::.Int32
On entry: the number m of nonlinear constraints, as input to e04vdm.
n
Type: System..::.Int32
On entry: the number n of variables, as input to e04vdm.
x
Type: array< System..::.Double >[]()[]
An array of size [n]
On entry: the vector x of variables at which the constraint functions are to be evaluated.
c
Type: array< System..::.Double >[]()[]
An array of size [ldcjac]
Note: ldcjac must satisfy the constraint:
On exit: must contain ncnln nonlinear constraint values, with the value of the jth nonlinear constraint in c[j-1].
cjac
Type: array< System..::.Double ,2>[,](,)[,]
An array of size [ldcjac, n]
Note: ldcjac must satisfy the constraint:
On exit: must contain the Jacobian of the nonlinear constraint functions with the ith row of cjac containing the gradient of the ith nonlinear constraint, i.e., cjac[i-1,j-1] must contain the partial derivative of ci with respect to xj. If cjac contains any constant elements, a saving in computation can be made by setting them once only, when nstate=1.
nstate
Type: System..::.Int32
On entry: will be 1 on the first call to confun by e04vdm, and is 0 for the two subsequent calls. Thus, if you wish, nstate may be tested within confun in order to perform certain calculations once only. For example, you may read data or initialize global variables when nstate=1. In addition, the constant elements of cjac can be set in confun when nstate=1, and need not be defined on subsequent calls.

Error Indicators and Warnings

Accuracy

Further Comments

See Also