  We present a new algorithm to identify fragments in computer simulations of
relativistic heavy ion collisions. It is based on the simulated annealing
technique and can be applied to n-body transport models like the Quantum
Molecular Dynamics. This new approach is able to predict isotope yields as well
as hyper-nucleus production. In order to illustrate its predicting power, we
confront this new method to experimental data, and show the sensitivity on the
parameters which govern the cluster formation.
