Global Optimization Examples #
This file demonstrates the branch-and-bound global optimization algorithm on multivariate expressions over n-dimensional boxes.
Examples #
Univariate #
- Minimize x² over [-1, 1] → global min at x = 0
- Minimize (x - 1/2)² over [0, 1] → global min at x = 1/2
Multivariate #
- Minimize x² + y² over [-1, 1]² → global min at (0, 0)
- Rosenbrock function: (1 - x)² + 100(y - x²)² over [-2, 2]²
- Beale function on a box
Expression builders #
The expression x² (variable 0 squared)
Equations
Instances For
The expression y² (variable 1 squared)
Equations
Instances For
The expression x² + y²
Equations
Instances For
The expression (x - c)² for a constant c
Equations
Instances For
The expression (1 - x)²
Equations
Instances For
The expression (y - x²)²
Equations
- One or more equations did not get rendered due to their size.
Instances For
Rosenbrock function: (1 - x)² + 100(y - x²)²
Equations
- One or more equations did not get rendered due to their size.
Instances For
Box construction #
Unit box [0, 1]²
Instances For
Symmetric box [-1, 1]²
Equations
Instances For
A larger box [-2, 2]² for Rosenbrock
Equations
- One or more equations did not get rendered due to their size.