emulator optimization