Code Monkey home page Code Monkey logo

optimisation_tasks's Introduction

Two separate optimisation tasks have been tackled.

  1. Interior_Point.m solves a linear program with a prototype interior point algorithm. image

    ,where f is a 2×1 vector,while a1,a2 and b are each 16×1 vectors.

    This can be rewritten as:

    image

    The Cost is:

    image

    The Gradient is:

    image

    The Hessian is:

    image

    Vectors f, a1, a2 and b are loaded from lin_prog149.mat via load_data_lin_prog.m. Given these values, the figure of the constraint region overlaid with the location of the solutions to (*µ) is below:

    image

  2. Travel.m solves a travelling salesman problem using simulated annealing: i.e. it finds a near-optimal shortest route between 40 coordinates (p(i), q(i)) with i=1,...,40. Vectors p and q are loaded from travel_sale149.mat via load_data_travel_sale.m. Given these values, the plot of the 40 coordinates together with the near-optimal route can be seen below:

    image

    When implementing simulated annealing it is common to perform more than one search. This program uses a randomized method because the global search for a “spatially” big function is computationally prohibitive. Therefore a different plot will be generated every time - rather than having one optimal route distance, this program provides a range of near-optimal short routes.

optimisation_tasks's People

Contributors

flaviamihaela 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.