ampl_free AMPL Toolbox ampl_get_size

AMPL Toolbox >> AMPL Toolbox > ampl_get_compl

ampl_get_compl

return the list of constraints which are of complementary kinds of a given AMPL problem

Calling Sequence

cvar = ampl_get_compl(asl)

Parameters

asl

a structure which handles the pointer to the problem

cvar

the list of index of the complementarity constraints. cvar[i] > 0 means constraint i complements variable cvar[i] - 1. If cvar==-1 then, there are no complementarity constraints.

Description

Return the list of constraints which are of complementary kinds of a given AMPL problem.

Examples

[asl, x0, bl, bu, v, cl, cu] = ampl_init('demos/data/ASL/ch03.nl');

cvar = ampl_get_compl(asl);

ampl_free(asl); // free the memory

See Also

Authors

ampl_free AMPL Toolbox ampl_get_size