Properly formulating an optimisation problem is crucial for finding effective solutions. This page outlines the key steps and components of problem formulation.
Key Components
1. Objective Function ()
The objective function is a mathematical expression that quantifies what we want to optimize:
- For minimization: Find such that for all
- For maximization: Find such that for all
Examples of objective functions include:
- Cost functions to be minimized
- Profit functions to be maximized
- Error functions to be minimized
- Efficiency functions to be maximized
2. Design Vector ()
The design vector consists of all variables that can be adjusted to optimize the objective function:
- , where is the dimension (number of variables)
- Each component represents one design variable
- The design space is the set of all possible design vectors
3. Constraints
Constraints limit the feasible values of the design variables:
Equality constraints:
Inequality constraints:
The feasible region is the set of all design vectors satisfying all constraints.
Mathematical Formulation
The general form of an optimisation problem is:
\begin{align} \min_{\theta} L(\theta) \text{ or } \max_{\theta} L(\theta)\ \text{subject to:}\ E_j(\theta) = 0, \quad j = 1,2,...,m\ I_k(\theta) \geq 0, \quad k = 1,2,...,n \end{align}
Steps in Problem Formulation
- Define the objective: Clearly state what needs to be optimized
- Identify design variables: Determine what can be adjusted
- Establish a mathematical model: Express the objective as a function of the design variables
- Identify constraints: Determine limitations on the design variables
- Verify formulation: Check that the formulation accurately represents the original problem
Examples
Example 1: Beam Design
Objective: Minimize weight of a beam Design variables: Width () and height () of the beam cross-section Constraints:
- Maximum stress below yield stress
- Maximum deflection below threshold
- Geometric constraints (, cm)
Mathematical formulation:
- (where is density and is length)
- Subject to stress, deflection, and geometric constraints
Example 2: Portfolio Optimization
Objective: Maximize expected return Design variables: Fraction of capital invested in each asset # Constraints:
- Sum of fractions equals 1
- Maximum risk threshold
- Minimum diversification requirements
Common Pitfalls
- Incorrect objective function: Failing to capture what truly needs to be optimized
- Missing constraints: Overlooking important limitations
- Too many variables: Including unnecessary design variables that complicate the problem
- Poor scaling: Variables with vastly different magnitudes causing numerical issues
- Over-constraining: Setting contradictory constraints that leave no feasible solution