Optimizing Black-box function in Pyomo

2019-08-26 22:53发布

问题:

Is it possible to optimize a problem in pyomo in which the objective function and/or constraints are written in other language like C or C++?

回答1:

Yes, you would want to use the ExternalFunction expression object.