Added logarithmic partial optimality measurement.