fixed dev calc
Fixed cost function formula in BinOptimizer