neil / Fast direct relaxation of implicit functions
0 gustos
0 bifurcaciones
1 archivos
Última actividad 3 months ago
The example is from Scott et al., 2011. Generalized mccormick relaxations. Journal of Global Optimization, 51(4), pp.569-606.
| 1 | using McCormick, BenchmarkTools |
| 2 | |
| 3 | """ |
| 4 | Direct relaxation of implicit function |
| 5 | """ |
| 6 | function direct_relax(f, x, p) |
| 7 | delta = Inf |
| 8 | while delta > 1e-8 |
| 9 | x_prev = x |
| 10 | x = f(x, p) |
Siguiente
Anterior