You are using a browser not supported by the Wolfram Cloud
Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.
I understand and wish to continue anyway »
Plot a function that has both global and local extrema: | Run |
Search for a local minimum near x1 | Run |
Now search for a local minimum near x-1.8 | Run |
Minimize FindMinimum | Run |
Constraints can also be included to find the minimum value in a restricted domain: | Run |
NMinimize Minimize | Run |
Without a restricted domain, it aims to find global minima and return numeric results: | Run |
Visualize the global and local minima that were found: | Run |
Epilog for global and local minima |
The same functionality can be used in higher dimensions. Define an objective function and constraints that can be visualized in three dimensions: | Run |
Visualize the objective function over the constrained region: | Run |
Options settings |
Options settings |
Find the local minimum of the objective function near (0,1) | Run |
Find the global minimum of the objective function in the constrained region: | Run |
Visualize the global minimum (shown in red) and the local minimum (shown in blue) that were found: | Run |
Define regions in terms of constraints, intersections and built-in shapes: | Run |
Visualize an objective function over the previously defined regions: | Run |
Options settings |
Options settings |
Use NMinimize | Run |
Use Minimize | Run |
Show the constrained minimum found along with the objective function: | Run |
Options settings |
Options settings |
Define two implicit regions through constraints: | Run |
Visualize the regions: | Run |
Find the pair of points (one from each region) that minimizes the distance between them: | Run |
Visualize the pair of points found and the distance between them: | Run |
Epilog for points and line |
Quickly define 3D regions using built-in shapes: | Run |
Visualize the shapes: | Run |
Find the pair of points (one from each region) that minimizes the distance between the two: | Run |
Visualize the points found with a line connecting them: | Run |
Solve and visualize a dynamic version of the previous example: | Run |
You are using a browser not supported by the Wolfram Cloud
Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.
I understand and wish to continue anyway »