Buyin Negative. Number of scaled  components of -(vector) exceeding  threshold_1 and below  threshold_2

 

Syntax

buyin_neg(w, matrix)

short call

buyin_neg_name(w, matrix)

call with optional name

 
Parameters

matrix        is a PSG matrix:

 

where the header row contains names of variables. Other rows contain numerical data, . The second numerical row is optional. If the second numerical row is not present, then, by default, all values of are equal to 1.

is a threshold value.

 

 

Mathematical Definition

Buyin Negative function is calculated as follows

,

where

is small threshold value,

is an argument of Buyin Negative function.

 

Remarks

It is recommended to select the multiplier row (the second numerical row) equal to the unit vector and . For instance if decision variables are measured in thousands than .

 

Example

Calculation in Run-File Environment
Calculation in MATLAB Environment

 

See also

Cardinality Positive, Cardinality Negative, Cardinality, Buyin Positive, Buyin, Fixed Charge Positive, Fixed Charge Negative, Fixed Charge