Code Monkey home page Code Monkey logo

nonlinear_optimization_algorithms's Introduction

Nonlinear_Optimization_Algorithms

A MATLAB Package for Nonlinear Optimization Algorithms

This package contains basic MATLAB implementations of:

  1. Steepest Descent algorithm with backtracking
  2. Steepest Descent algorithm with Wolf-condition
  3. Newton algorithm with backtracking
  4. Newton algorithm with Wolf-condition
  5. BFGS algorithm with backtracking
  6. BFGS algorithm with Wolf-condition
  7. Trust Region with Conjugate Gradient (CG) as Subproblem Solver
  8. SR1 update Trust Region with Conjugate Gradient (CG) as Subproblem Solver

Implementations are based on: Nocedal, J., & Wright, S. J. (2006). Numerical optimization 2nd.

To run the opt.m optimizer you need to execute the following command in the directory of package:

output = opt('problem_name',starting_point,'algorithm',parameters)

for instance:

[x]= opt('rosenbrock',[1.8;3],'sr1trustregioncg',struct)
[x]= opt('genhumps',[2;2;2;2;2],'newtonbacktrack',struct)

If you want to execute all the algorithms for a given problem and starting point, you may use runner.m:

runner('problem_name',starting_point)

for instance:

runner('leastsquares',[3;3;3;3])

additional details:

  1. If you want to add new problems of your own, you need to make sure the opt.m can access function evaluation (case 0), gradient evaluation (case 1) and if needed by the algorithm Hessian evaluation (case 2).

  2. If you wish to change the parameters' default values, you may add them to structure before running the opt.m.

for instance:

struct.maxiter = 1e+5; % new iteration limit 
struct.opttol = 1e-07; % new optimality tolerance 
[x]= opt('genhumps',[2;2;2;2;2],'newtonbacktrack',struct)

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.