Controller optimization using metamodelling technique