Adding constraint to the parameter

Your solution worked but I did not understand the part about why p = p/p.sum() is not unique. Could you please elaborate on that?

Thanks