RSL-W
Bases: RSLBase
Source code in rcd/rsl/rsl_w.py
find_neighborhood(var)
Find the neighborhood of a variable using Proposition 37.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
var |
int
|
The variable whose neighborhood we want to find. |
required |
Returns:
Type | Description |
---|---|
ndarray
|
np.ndarray: 1D numpy array containing the variables in the neighborhood. |
Source code in rcd/rsl/rsl_w.py
is_removable(var)
Check whether a variable is removable using Theorem 36.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
var |
int
|
The variable to check. |
required |
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
True if the variable is removable, False otherwise. |