Documentation

  • All Products
  • Optimization Toolbox
    • Getting Started
    • Examples
    • Functions
    • Release Notes
    • PDF Documentation
  • Optimization Problem Setup
  • Choose a Solver
  • Write Objective Function
  • Write Constraints
  • Set Options
  • Parallel Computing

Write Objective Function

Define the function to minimize or maximize, representing your problem

Examples and How To

Write Objective

  • Types of Objective Functions
  • Writing Scalar Objective Functions
  • Writing Vector and Matrix Objective Functions
  • Writing Objective Functions for Linear or Quadratic Problems
  • Maximizing an Objective
  • Objective and Nonlinear Constraints in the Same Function

Pass Extra Parameters

  • Passing Extra Parameters

Concepts

  • Function Arguments
  • Matrix Arguments
Was this topic helpful?
Optimization Toolbox Documentation
  • Getting Started
  • Examples
  • Functions
  • Release Notes
  • PDF Documentation
Other Documentation
  • MATLAB
  • Symbolic Math Toolbox
  • Global Optimization Toolbox
  • Curve Fitting Toolbox
  • Statistics and Machine Learning Toolbox
  • All Products
Support
  • MATLAB Answers
  • Installation Help
  • Bug Reports
  • Product Requirements
  • Software Downloads

© 1994-2015 The MathWorks, Inc.

  • Terms of Use
  • Patents
  • Trademarks
  • Acknowledgments