GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing yalmip.github.io — interp2 interp2 overloads interp2, with additional flags for a creating mixed-integer sos2-based approximation SyntaxExample (nonlinear optimization)Create a nonlinear function over a grid and find the global minima of a spline interpolated version of the nonlinear function, using the global solver BMIBNB (naturally silly to do as we simply can use the data to find the global minimum) Of course, in this case we could have worked with the nonlinear function directly. Example (linear optimization)With the flags ‘sos2’ or ‘milp’ a sos2 representation of the piecewise affine function interpolating the supplied data points is created, and thus requires a sos2-capable mixed-integer linear solver. Create a more challenging nonlinear function than above We can try to find a minimizer by overloading an interpolation (here using splines) of the data-points. This will lead to a nonlinear program Almost surely, a local nonlinear solver will fail to find a good solution. The same happens when we simply use the nonlinear function directly A global solver finds the globally optimal solution easily An alternative way to attack this with a hope of a global solution is to approxmate the objective using a sos2 representation and thus solve the problem using a mixed-integer linear solver. THe precision in this solver is limited by the granularity of our grid. Let us start our local solver in the computed point and try to improve it ImplementationIn the nonlinear case when the operator is implemented using the callback framework, the operator does not compute derivatives, which can lead to slow computations (and in general, computing a single function value is expensive). All bounding in the global solver is done using sampling heuristics. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |