lbfgsb.base.count_var_at_bounds#
- lbfgsb.base.count_var_at_bounds(x: ndarray[tuple[Any, ...], dtype[float64]], lb: ndarray[tuple[Any, ...], dtype[float64]], ub: ndarray[tuple[Any, ...], dtype[float64]]) int[source]#
Count the number of variables exactly at the bounds.
- Parameters:
x (NDArrayFloat) – Adjusted variables as a 1D vector of size \(N_{n}\).
lb (NDArrayFloat) – Lower bounds.
ub (NDArrayFloat) – Upper bounds.
- Returns:
Number of variables exactly at the bounds.
- Return type: