concepts.dm.crow.behavior_utils.CrowAdditiveHeuristicProgramExecutor#

class CrowAdditiveHeuristicProgramExecutor[source]#

Bases: object

Methods

evaluate(expression, state[, csp, ...])

Evaluate an expression and return the result.

get_cost()

run(stmt, scope)

__init__(executor, state, minimize=None, is_unit_cost=False)[source]#
Parameters:
__new__(**kwargs)#
evaluate(expression, state, csp=None, bounded_variables=None, clone_csp=True, force_tensor_value=False)[source]#

Evaluate an expression and return the result.

Parameters:
Returns:

the evaluation result and the updated CSP.

Return type:

Tuple[None | StateObjectReference | StateObjectList | TensorValue | OptimisticValue, ConstraintSatisfactionProblem | None]

get_cost()[source]#
Return type:

float

run(stmt, scope)[source]#
Parameters:
Return type:

float