问题
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.
来源:https://stackoverflow.com/questions/51720251/optimizing-black-box-function-in-pyomo