We have used formula formula to calculate weight as,
$$ w_1 = \frac{s_1}{s_1 + s_2 + s_3};$$ $$ w_2 = \frac{s_2}{s_1 + s_2 + s_3};$$ $$ w_3 = \frac{s_3}{s_1 + s_2 + s_3};$$
However, their is possibility of negative and positive numbers. Even all can be negative or positive. How to calculate weight in this type of situation.
For us -/+ are according to strict algebraic rules. i.e bigger the negative number smaller will be its value.
Thanks.
Let the smallest of the numbers $s_1$, $s_2$, $s_3$ be $m$. Let $t_i=s_i-m+1$ for each $i$. Then the $t_i$ are all positive, and satisfy the same order relatins as the $s_i$, for example, if $s_1\lt s_2$, then $t_1\lt t_2$. So you can use your formula to assign weights to the $t_i$, and then assign those same weights to the $s_i$.
Whether you will like the weights you get, I can't say. Experiment a bit and you may find some other constraint you want your weights to satisfy, then we can refine the technique.