Changeset 514

Show
Ignore:
Timestamp:
11/11/09 16:32:38 (14 years ago)
Author:
trnewman
Message:

Capped utility to prevent positive feedback loop

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vtcross/trunk/src/cognitive_engines/DSA_CE/DSA_CognitiveEngine.cpp

    r513 r514  
    195195    if(newUtilityValue <= 100) 
    196196        newUtilityValue = 100; 
     197 
     198    // Put limit on utility score to prevent a positive feedback loop  
     199    if(newUtilityValue >= 800) 
     200        newUtilityValue = 800; 
    197201 
    198202    obsVals[obsValueIndex] = newUtilityValue;