Buyin Positive. Number of   scaled  components of a vector exceeding  threshold_1 and below  threshold_2

 

Syntax

buyin_pos(w, matrix)

short call

buyin_pos_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 Positive function is calculated as follows

,

where

is small threshold value,

is an argument of Buyin Positive function.

 

Remarks

It is recommended to select the multiplier (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 Negative, Buyin, Fixed Charge Positive, Fixed Charge Negative, Fixed Charge