fcn2optimexpr 将其转换为优化表达式。请参阅Convert Nonlinear Function to Optimization Expression和Supported Operations on Optimization Variables and Expressions。
有关基本非线性优化示例，请参阅基于问题求解有约束非线性问题：。有关基本混合整数线性规划示例，请参阅混合整数线性规划基础：基于问题。有关基本方程求解示例，请参阅Solve Nonlinear System of Equations, Problem-Based。
Problem-based steps for solving optimization problems.
Problem-based steps for solving equations.
Expressions define both objective and constraints.
Pass extra parameters, data, or fixed variables in the problem-based approach.
Syntax rules for problem-based least squares.
How to create and work with named indices for variables.
Shows how to review or modify problem elements such as variables and constraints.
How to evaluate the solution and its quality.
Tips for obtaining a faster or more accurate solution when there are integer constraints, and for avoiding loops in problem creation.
To create reusable, scalable problems, separate the model from the data.
Solution to the problem of two optimization variables with the same name.
This example shows how to create initial points for
when you have named index variables by using the
Optimization expressions containing
NaN cannot be displayed, and can cause unexpected
Save time when your objective and nonlinear constraint functions share common computations in the problem-based approach.
Automatic differentiation lowers the number of function evaluations for solving a problem.
Use multiple processors for optimization.
Perform gradient estimation in parallel.
Example showing the effectiveness of parallel computing
in two solvers:
Investigate factors for speeding optimizations.
How the optimization functions and objects solve optimization problems.
Learn how automatic differentiation works.
Lists all available mathematical and indexing operations on optimization variables and expressions.