Coder Social home page Coder Social logo

aristotelispap / numerical-unconstrained-optimization-solver Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 1.12 MB

Implemented Gradient Descent, Newton, Modified Newton, DFP and BFGS numerical optimization algorithms in C from scratch and compared the results with the commercial AMPL'S MINOS solver.

License: MIT License

C++ 100.00%

numerical-unconstrained-optimization-solver's Introduction

Numerical Unconstrained Optimization Solver

In this project, I implemented Gradient Descent, Newton, Modified Newton, DFP and BFGS numerical optimization algorithms in C programming language. All of these algorithms are boosted with Armijo step size rule which helps them to decide an appropriate step size at each iteration.

Several "tricks" were used in order to implement the aforementioned algorithms in C. For example, Newton's method require the knowledge of the Hessian matrix and someone needs to take its inverse in order to solve the direction finding problem. In order to solve this problem in C, we applied Cholesky Decomposition of the inverse Hessian and combined the Cholesky factors in order to solve the direction finding problem.

Last, we made a comparison between the implemented algorithms and AMPL's MINOS solver (commercial solver) in 10 benchmark functions. Interestingly, we found that our implementation of the Modified Newton algorithm converges in less steps than the MINOS solver and with much less gradient evaluations.

Note 1: The implementation requires that the user has to provide the gradient (and the Hessian if requested by the algorithm) of the objective function!

Note 2: The uploaded versions of the algorithms have been provided with the gradient and the Hessian of the extended Rosenbrock function which constitutes a benchmark in numerical optimization. The algorithms have been also tested for several other benchmark functions as shown in the file "Unconstrained Presentation.pdf".

numerical-unconstrained-optimization-solver's People

Contributors

aristotelispap avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.