gamsel (version 1.8-1)

getActive: Returns active variables

Description

Extract active variables of different kinds from a gamsel object

Usage

getActive(object, index, type = , EPS = 0)

Arguments

object

gamsel object

index

index or vector of indices at which to obtain active information. NULL returns all.

type

type of active variables to report. One of c("nonzero", "linear", "nonlinear")

EPS

threshold for what is nonzero; default is 0

Value

vector of indices

Details

Returns a vector of variables indices of variables having the desired properties.