Characterization of the Convex Lukasiewicz Fragment for Learning from Constraints