Documentation

This is machine translation

Translated byMicrosoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated byMathWorks.Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Write Objective Function

Define the function to minimize or maximize, representing your problem

Topics

Write Objective

Types of Objective Functions

Find the appropriate form for your objective function.

Complex Numbers in Optimization Toolbox Solvers

Describes which solvers can handle complex numbers.

Writing Scalar Objective Functions

How to write objective functions for scalar nonlinear problems.

Writing Vector and Matrix Objective Functions

How to write objective functions for nonlinear least squares or systems of nonlinear equations.

Writing Objective Functions for Linear or Quadratic Problems

How to write objective functions for linear programming, integer linear programming, quadratic programming, or linear least squares.

Objective and Nonlinear Constraints in the Same Function

Save function evaluations, typically useful in simulations.

Maximizing an Objective

如何优化最多而不是一个迷你mum.

Pass Extra Parameters

Passing Extra Parameters

Including extra parameters or data in your objective or nonlinear constraint functions.

Function Argument Details

Function Input Arguments

Describes solver input arguments.

Matrix Arguments

Handling multidimensional arguments.

Was this topic helpful?