I am doing my thesis on Evolutionary Computation. In n-dimensional space point (let's call individual) has nGenerating n random variables associated with each dimension. Constraint iswhose summation these variables mustwill be around 1 (between .95 to 1.05).
So the question is, how can I generate [nI got the answer. random numbers whose summation will be around 1?]
This isn't directly relate stats. But I would really appreciate any sort of help.EDIT
A fitness function evaluates fitness of every individualOn genetic algorithm, we have to maintain population. Say, I have two individuals a and b. VariablesEvery individual consists of $n$ pairs of ($x_i, \theta_i$), where $ 0 \leq i < n$. A fitness function evaluates fitness, $f$ of every individual. Constraint is for every individual is $\Sigma\theta_i \approx 1$ ($0.95 \leq \Sigma\theta_i < 1.05$ would suffice). $\theta_i$ associated with individual a will be adapted by some function (which I haven't figured out yet) of euclidian distance with b$d(a, b)$ & difference of fitness value$\Delta f$. These variables$\theta_i$ will be adaptive (by I guess something like covariance matrix). So if I increase value of some variables$\theta_i$, values of some variables$\theta_j$ have to be decreased to maintain summation 1$\Sigma\theta_i \approx 1$. Any idea or suggestion?
Sorry for not using latex andSo I don't have stronghold on stat.
Youam seeking suggestion how can have a look atbe CMA-ES.$\theta_i$ adapted based on $d(a, b)$ & $\Delta f$?