Package teamwork :: Package reward :: Module goal
[hide private]
[frames] | no frames]

Module goal

source code

Goals as piecewise linear reward functions


Author: David V. Pynadath <pynadath@ict.usc.edu>

Classes [hide private]
  PWLGoal
A reward subfunction represented as a PWL function of some vector (typically the world state)
Functions [hide private]
PWLGoal
maxGoal(key)
Creates a PWLGoal corresponding to a maximization goal
source code
PWLGoal
minGoal(key)
Creates a PWLGoal corresponding to a minimization goal
source code
Variables [hide private]
  EMPTY_NAMESPACE = None
  EMPTY_PREFIX = None
  StringTypes = (<type 'str'>, <type 'unicode'>)
  XMLNS_NAMESPACE = 'http://www.w3.org/2000/xmlns/'
Function Details [hide private]

maxGoal(key)

source code 

Creates a PWLGoal corresponding to a maximization goal

Parameters:
  • key (Key) - the Key that points to the vector element to be maximized
Returns: PWLGoal

minGoal(key)

source code 

Creates a PWLGoal corresponding to a minimization goal

Parameters:
  • key (Key) - the Key that points to the vector element to be minimized
Returns: PWLGoal