langgoap.SimpleScore#
- class SimpleScore(scalar=0.0)[source]#
A single scalar score.
valuereturns the stored value;is_feasibleis alwaysTrue(A*-produced plans are feasible by construction because A* would not return them otherwise).Comparison: lower is better. This matches the existing A* convention where
total_costis minimized.- Parameters:
scalar (float)
- __init__(scalar=0.0)#
- Parameters:
scalar (float)
- Return type:
None
Methods
__init__([scalar])is_feasible()Return True if this score represents a feasible plan.
Attributes
scalarvalueReturn a scalar representation of this score.