📝Syntax
expr = fcn2optimexpr(fcn, in1, ..., inN)
expr = fcn2optimexpr(fcn, in1, ..., inN, name, value)
📄Description
fcn2optimexpr converts a function into an optimization expression, so that functions that cannot be composed from the supported elementary operators can still be used as objectives or constraints in a problem-based model.
When the expression is evaluated, each input argument is evaluated for the current variable values, then fcn is called on the resulting numeric values.
📚Bibliography
J. Nocedal and S. J. Wright, Numerical Optimization, Springer, 2006.