The restrictions while doing nls are such that parameters b_i lie between 0 and 1 and that sum of all b_i\'s equal 1, i= 1, 2, 3, 4, 5, 6 so that there are 6 parameters. In