Preference-based planning: Difference between revisions

Content deleted Content added
remove red link for now, might be a while
Plan quality: clarify variables
Line 26:
:<code>(:metric minimize (+ (* 5 (is-violated pref1)) (* 7 (is-violated pref2))))</code>
 
This example metric function specifies that the calculated value of the plan should be minimized (i.e., a plan with value ''v1'' and a plan with value ''v2'' such that ''v1'' < ''v2'', the former plan is strictly preferred). The value of a plan is computed by the given function, which is expressed in [[Polish notation]]. In this case, violation of the second preference, <code>pref2</code>, has been given a greater penalty than the first preference, <code>pref1</code>.
 
== Constraints satisfaction problem ==