'Is there a way to optimise inputs to a python function which calls an executable?

For example: I have an executable that takes 20 inputs from the command line. This can be called from python. The executable takes 2 seconds to run.

The result of the executable can also be interpreted by python. This result is required to be minimised which indicates an optimal solution.

What is the best way to find the optimal mix of input variables? I'm new to this field, but a neural net seems would have no training data. And scipys least squares (and similar) routines dont seem to handle well a slow function being optimised, it seems like it would take a very long time...

Any help, pointers and discussion would be welcome! Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source