Problembasierte nichtlineare Optimierung
Serielles oder paralleles Lösen nichtlinearer Optimierungsprobleme mithilfe des problembasierten Ansatzes
Bevor Sie mit der Lösung eines Optimierungsproblems beginnen, müssen Sie den geeigneten Ansatz wählen: problembasiert oder solverbasiert. Für Details siehe Erster Schritt: Wählen eines problembasierten oder solverbasierten Ansatzes.
Formulieren Sie die Zielfunktion und die nichtlinearen Nebenbedingungen als Ausdrücke der Optimierungsvariablen oder wandeln Sie MATLAB®-Funktionen mithilfe von fcn2optimexpr um. Informationen zur Aufstellung des Problems finden Sie unter Einrichtung der problembasierten Optimierung.
Funktionen
evaluate | Evaluate optimization expression or objectives and constraints in problem |
fcn2optimexpr | Convert function to optimization expression |
infeasibility | Constraint violation at a point |
optimproblem | Create optimization problem |
optimvar | Create optimization variables |
prob2struct | Convert optimization problem or equation problem to solver form |
solve | Solve optimization problem or equation problem |
Live Editor Tasks
| Optimize | Optimieren oder Lösen von Gleichungen im Live-Editor |
Apps
| Optimization Explorer | Explore multiple solver configurations and their solutions for an optimization problem (Seit R2026a) |
Themen
Problembasierte Anwendungen ohne Nebenbedingungen
- Rational Objective Function, Problem-Based
This example shows how to create a rational objective function using optimization variables and solve the resulting unconstrained problem.
Problembasierte Anwendungen mit Nebenbedingungen
- Solve Constrained Nonlinear Optimization, Problem-Based
This example shows how to solve a constrained nonlinear problem based on optimization expressions. The example also shows how to convert a nonlinear function to an optimization expression. - Use Optimization Explorer App
Basic example showing the use of the Optimization Explorer App. - Convert Nonlinear Function to Optimization Expression
Convert nonlinear functions, whether expressed as function files or anonymous functions, by usingfcn2optimexpr. - Constrained Electrostatic Nonlinear Optimization Using Optimization Variables
Define objective and constraint functions for a structured nonlinear optimization in the problem-based approach. - Discretized Optimal Trajectory, Problem-Based
This example shows how to solve a discretized optimal trajectory problem using the problem-based approach. - Problem-Based Nonlinear Minimization with Linear Constraints
Shows how to use optimization variables to create linear constraints, andfcn2optimexprto convert a function to an optimization expression. - Effect of Automatic Differentiation in Problem-Based Optimization
Automatic differentiation lowers the number of function evaluations for solving a problem. - Supply Derivatives in Problem-Based Workflow
How to include derivative information in problem-based optimization when automatic derivatives do not apply. - Obtain Generated Function Details
Find the values of extra parameters in nonlinear functions created byprob2struct. - Objective and Constraints Having a Common Function in Serial or Parallel, Problem-Based
Save time when the objective and nonlinear constraint functions share common computations in the problem-based approach. - Solve Nonlinear Feasibility Problem, Problem-Based
Solve a feasibility problem, which is a problem with constraints only. - Feasibility Using Problem-Based Optimize Live Editor Task
Solve a nonlinear feasibility problem using the problem-based Optimize Live Editor task and several solvers. - Obtain Solution Using Feasibility Mode
Solve a problem with difficult constraints usingfminconfeasibility mode. - Monitor Solution Process with optimplot
View details of the optimization solution process usingoptimplot. - Output Function for Problem-Based Optimization
Use an output function in the problem-based approach to record iteration history and to make a custom plot.
Parallelrechnen
- What Is Parallel Computing in Optimization Toolbox?
Use multiple processors for optimization. - Using Parallel Computing in Optimization Toolbox
Perform gradient estimation in parallel. - Improving Performance with Parallel Computing
Investigate factors for speeding optimizations.
Simulation oder ODE
- Optimizing a Simulation or Ordinary Differential Equation
Special considerations in optimizing simulations, black-box objective functions, or ODEs.
Algorithmen und sonstige theoretische Grundlagen
- Unconstrained Nonlinear Optimization Algorithms
Minimizing a single objective function in n dimensions without constraints. - Constrained Nonlinear Optimization Algorithms
Minimizing a single objective function in n dimensions with various types of constraints. - fminsearch Algorithm
Steps thatfminsearchtakes to minimize a function. - Optimization Options Reference
Explore optimization options. - Local vs. Global Optima
Explains why solvers might not find the smallest minimum. - Smooth Formulations of Nonsmooth Functions
Reformulate some nonsmooth functions as smooth functions by using auxiliary variables. - Literaturverzeichnis zur Optimierung
Enthält eine Auflistung der veröffentlichten Literatur, die die in den Algorithmen des Optimierungssolvers umgesetzten Konzepte untermauert.