Skip to content

optimtool-2.4.3

Compare
Choose a tag to compare
@linjing-lab linjing-lab released this 01 Jun 09:55
· 103 commits to master since this release

Simple Case:

import optimtool as oo
x1, x2, x3, x4 = sp.symbols("x1 x2 x3 x4") # Declare symbolic variables
f = (x1 - 1)**2 + (x2 - 1)**2 + (x3 - 1)**2 + (x1**2 + x2**2 + x3**2 + x4**2 - 0.25)**2
oo.unconstrain.gradient_descent.barzilar_borwein(f, [x1, x2, x3, x4], (1, 2, 3, 4)) # funcs, args, x_0

Bugs Fixed:

  • update _convert/h2h: reduce corrected times of hessian matrix
import optimtool.unconstrain as ou
ou.newton.modified(f, [x1, x2, x3, x4], (1, 2, 3, 4)) # funcs, args, x_0

Reference: