Purpose
Get information
about a quadratic expression.
Synopsis
int getqexpstat(XPRMctx ctx, void *quadctx, mmquad_qexp q,
int *nblin, int *nbqd, int *changed, XPRMmpvar **lsvar);
Arguments
ctx
|
Mosel's execution context
|
quadctx
|
Context of mmquad
|
q
|
Reference to a quadratic expression
|
nblin
|
Pointer to which the number of linear terms is
returned (may be NULL)
|
nbqd
|
Pointer to which the number of quadratic terms is
returned (may be NULL)
|
changed
|
Pointer to which the change flag is returned (may be NULL). Possible values of this flag:
1
|
The expression q has been modified
since the last call to this function
|
0
|
Otherwise
|
|
lsvar
|
Pointer to which is returned the table of variables
that appear in the quadratic expression q (may be
NULL)
|
Return value
Total number of terms in the expression.
Further information
This function returns in its arguments information about a
given quadratic expression. Any of these arguments may be
NULL to indicate that the corresponding information is not
required.
The last entry of the table
lsvar is
NULL to indicate its end. This table is allocated by the module
mmquad, it must be freed by the next call to this function or with function
clearqexpstat.
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.