I have a simulated annealing algorithm and I have a function like
result = w1*x1 + w2*x2 + ... + wn*xn 
every loop of the simulated annealing when new w values are chosen how do you make sure that the sum of w always equal to 1 and that no individual w value is less that 0?
Thank you very much folks!
 
    