Log framework, non-convex distance mesurement optimized