Giter Site home page Giter Site logo

optimization's Introduction

optimization-teapm

Repository to store all my studies and experiments from my masters Optimization discipline Unconstrained optimization algorithms

Simple usage: Define objective function, define unconstrained problem and solve with any UnconstrainedOptimization solver available so far (SteepestDescent, ConjugateGradient and Newton Methods. Soon: ModifiedNewton and QuasiNewton).

Four different types of line search methods are available: equal intervals, golden section, quadratic interpolation and armijo method.

def rosenbrockFunction(x):
    x1, x2 = x[0], x[1] 
    return 10.0*x1**4.0 -20.0*x1**2.0*x2 + 10.0*x2**2.0 + x1**2.0 - 2.0*x1 + 5.0

p1 = UnconstrainedProblemSetup(
    f = rosenbrockFunction, 
    x0 = [- 1.0 , 3.0], 
    lineSearchMethod = goldenLineSearch, 
    absoluteEpsilon = 1e-6,
    maxIterations = 500,
    )

newtonOpt = NewtonOptimization(p1)
output = newtonOpt.solve()

Graphical optimization

Tools to ouput two variables (for proof of concept, teaching) objective functions, equality and inequality constraints. Shows feasible region and also optimization path for the existing algorithms implemented so far. Figure3_21 Figure_1

optimization's People

Contributors

dplucenio avatar

Stargazers

 avatar  avatar

Watchers

 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.