Applications of copulas in optimisation