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 Constraints

Provide bounds, linear constraints, and nonlinear constraints

Examples and How To

Write Constraints

  • Types of Constraints
  • Iterations Can Violate Constraints
  • Bound Constraints
  • Linear Inequality Constraints
  • Linear Equality Constraints
  • Nonlinear Constraints
  • Or Instead of And Constraints
  • Objective and Nonlinear Constraints in the Same Function
  • How to Use All Types of Constraints

Pass Extra Parameters

  • Passing Extra Parameters

Concepts

  • 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