The determination of the spatial structure of biomacromolecules via optimisation of its internal coordinates, i.e., torsion angles, comprises a complex optimisation problem. The search space contains many nearly optimal solutions, and the torsion angles are highly non-linearly correlated. The genetic algorithm and simulated annealing were applied to this problem, and there performances were compared.