Skip to content

Univariate function optimization based on Brent's method.

License

Notifications You must be signed in to change notification settings

limix/brent-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brent-search

Brent's method for univariate function optimization.

Example

from brent_search import brent

def func(x, s):
  return (x - s)**2 - 0.8

r = brent(lambda x: func(x, 0), -10, 10)
print(r)

The output should be

(0.0, -0.8, 6)

Install

From command line, enter

pip install brent-search

Authors

Acknowledgements

License

This project is licensed under the MIT License.

About

Univariate function optimization based on Brent's method.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages