@@ -126,6 +126,10 @@ public class PidLambdaContainer {
continue;
}
latestRealCPA=realCost/conversion;
+ if(latestRealCPA.equals(cacheItem.latestRealCpa)){
+ temp.put(creativeId,cacheItem);
+ continue;
+ }
Double lambdaNew =cacheItem.calculate(kp,ki,kd,cpa,latestRealCPA);
if(lambdaNew<minLambda){
lambdaNew=minLambda;