All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Login


All New Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated

neil / Fast direct relaxation of implicit functions

0 likes
0 forks
1 files
Last active 3 months ago
The example is from Scott et al., 2011. Generalized mccormick relaxations. Journal of Global Optimization, 51(4), pp.569-606.
implicit-functions mccormick-relaxations
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)
Newer Older

Powered by Opengist ⋅ Load: 26ms⋅

日本語
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文