langgoap.SimpleScore

langgoap.SimpleScore#

class SimpleScore(scalar=0.0)[source]#

A single scalar score.

value returns the stored value; is_feasible is always True (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_cost is 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

scalar

value

Return a scalar representation of this score.