Surrogate modelling for solving optimization problems with polymorphic uncertain data