How use convex optimization for combinatorial ksum problem