Find optimum solution by simulating process with constraints on inputs