concepts.pdsketch.planners.optimistic_search_bilevel_utils.extract_bounded_variables_from_nonzero#

extract_bounded_variables_from_nonzero(state, value, regression_rule, default_bounded_variables, use_optimistic=False)[source]#

Extract the indices of the given tensor value. The return value is a list of bounded variable dictionaries.

Parameters:
Return type:

Tuple[bool, List[Dict[Variable, str]]] | Tuple[bool, List[Tuple[int, Dict[Variable, str]]]]