The cost for action from old_state to new_state

REQUIRE: apply_action(old_state, action) == new_state

Default: 1. Note that having a 0 or negative value can make some search algorithms fail, or not terminate.

Property definitions

ai $ SearchProblem :: cost
	# The cost for `action` from `old_state` to `new_state`
	# REQUIRE: `apply_action(old_state, action) == new_state`
	# Default: `1`.
	# Note that having a 0 or negative value can make some search
	# algorithms fail, or not terminate.
	fun cost(state:S, action:A, state2: S): Float do return 1.0
lib/ai/search.nit:92,2--97,60