Tag Archives: optimization

#Optimization with #Simulated #Annealing – A #MATLAB tutorial for beginners

In this tutorial I will show how to use Simulated Annealing for minimizing the Booth’s test function. Simulated Annealing is one of the most famous optimization algorithms that has been also implemented in MATLAB as a built-in function. The Booth’s … Continue reading

Posted in Linux, Machine Learning, MATLAB, Optimization, programming, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Particle Swarm Optimization – A MATLAB Tutorial for beginners

In this tutorial I will show you how to use the built-in Particle Swarm Optimization (PSO) algorithm in MATLAB. I optimize the famous Ackley’s function which has a global minimum at [0 0] and the function value in the optimum … Continue reading

Posted in Linux, Machine Learning, MATLAB, Optimization, programming, Robotics, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Using Multi-Objective Genetic Algorithm to Optimize the ZDT1 test problem – A MATLAB video tutorial

In this tutorial, I show implementation of the ZDT1 multi-objective test problem and optimize it using the built-in Multi-objective Genetic Algorithm in MATLAB. The given objective function is a standard test function that helps a beginner user to understand the … Continue reading

Posted in Linux, Machine Learning, MATLAB, Optimization, programming, Robotics, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Optimization with Pattern Search – A MATLAB Tutorial for beginners

Pattern search is a local optimization technique that can be applied on both constrained and unconstrained optimization problems. The constraints can be either linear or nonlinear. The algorithm works based on an adaptive mesh which is aligned with the coordinate … Continue reading

Posted in Linux, Machine Learning, MATLAB, Optimization, programming, Robotics, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Mixed-Integer Linear Programming – A MATLAB Tutorial for Beginners

In this tutorial, I show implementation of a mixed-integer optimization problem using linear programming in MATLAB. The given objective function is a simple function that helps a beginner user to understand the basic concept of optimization in MATLAB easier. The … Continue reading

Posted in Linux, Machine Learning, MATLAB, Optimization, programming, Robotics, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , | Leave a comment

How to carry out an operator with probability p – Optimization Algorithms

When implementing optimization algorithms, we often bump into this phrase: “an operator needs to be carried out with probability P”. For instance, this can happen when implementing the crossover or mutation phases in Evolutionary Algorithms. It means that you want … Continue reading

Posted in Linux, Machine Learning, MATLAB, Optimization, programming, Reinforcement Learning, Robotics, Software, Statistics, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Investigating code performance in MATLAB – Part 1: For-loop

Here I want to show you a very simple example in MATLAB. Consider we have a large matrix (can be an image also) and we want to perform element-wise operation on the matrix elements. Let’s first create a large matrix: … Continue reading

Posted in Linux, MATLAB, Optimization, programming, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | 4 Comments

Estimating the value of Pi using Python (For educational Purposes)

You can estimate the value of `Pi` up to specific precision with the following method: 1- draw a square and draw the corresponding circle inside it (a quarter of the circle inscribed inside the square). So the edge length of … Continue reading

Posted in Linux, programming, Python, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Function Approximation – 1 (Radial Basis Network)

Here I give an example about the function approximation technique in MATLAB, than can be used in many areas, e.g., machine learning, robotics, artificial intelligence, optimization. The function approximation in this tutorial is accomplished using Radial Basis Networks. There are … Continue reading

Posted in Linux, Machine Learning, MATLAB, Neural Networks, Optimization, programming, Robotics, SIMULINK, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Linear vector mapping (scaling) – MATLAB

Vector mapping means changing the range of a vector from range-1 to range-2. For instance, if a vector is in range [2,12] and we want to scale the vector and map it to range [0,2]. I give you some useful hints … Continue reading

Posted in Linux, Machine Learning, MATLAB, Optimization, programming, Robotics, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment