-
Interior_Point.m solves a linear program with a prototype interior point algorithm.
,where f is a 2×1 vector,while a1,a2 and b are each 16×1 vectors.
This can be rewritten as:
The Cost is:
The Gradient is:
The Hessian is:
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:
-
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:
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 Introduction
optimisation_tasks's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.