Reward distribution routine prioritizes sub goals by updating their desirability attributes.
One of super goals is (partially) satisfied. The super goal calculates reward and passes it to reward distribution routine. Reward distribution routine distributes reward among cause concepts responsible for the super goal satisfaction.
1) Reward value.
2) Specified super goal.
This “super goal’s deputy concept” has: ConceptId = SuperGoalConceptId
That means to select all records from cause-effect relation table with EffectConceptID = SuperGoalConceptId:
WHERE EffectConceptID = SuperGoalConceptId
Distribute reward among selected concepts proportionally Coherence attribute.
That means to update desirability attribute of every selected concept.