A metaheuristics framework for calibration and optimisation