thanks a lot for your support 
but the problem is that sometimes sum of c's can be equal to 6, 5, 4, 3, 2 OR 1
the sum of c's should take a value that gives the best optimization solution
so now I will be having a big big big bundle of permutations, so are there any new options???????
sorry for the disturbance and thanks for the support !!!!!