Solving Optimization Problems

How to Use Simulated Annealing Solver to Solve Optimization Problems

Hello everyone and welcome! In this post, I’m going to show you how to use Simulated Annealing solver in Matlab to solve optimization problems. It is very easy and effective. Minimum programming skill is required. Almost everyone can do this with a few minutes.

Did you know that Simulated Annealing Algorithm is one of the top three most popular stochastic optimization algorithms for solving complex large scale optimization problems in various fields? Only Genetic Algorithm and Particle Swarm Optimization are more popular than Simulated Annealing Algorithm.

Here are the details of the benchmark function used in this post to test the performance of the Simulated Annealing Solver.

Let’s see how the Simulated Annealing Solver works:

For more videos like this, check my YouTube channel here.

Matlab code:

function Output = objective_function(Input)
x = Input(1);
y = Input(2);

Output = (sin(3*pi*x))^2 + ((x - 1)^2)*(1 + (sin(3*pi*y))^2)+...
    ((y - 1)^2)*(1 + (sin(2*pi*y))^2);

P/s: If you find the post useful, share it to remember and to help other people as well.

Dr.Panda

View Comments

Recent Posts

Adaptive Re-Start Hybrid Genetic Algorithm in Matlab

Hello everyone! In this post, I am going to show you my innovative version of…

8 months ago

Test Your Understanding About Genetic Algorithm (Test 2)

Hello everyone. Let’s take a test to check your understanding about genetic algorithm, with multiple…

8 months ago

Adaptive Restart Hybrid Genetic Algorithm

Hello everyone! In this post, I am going to show you my innovative version of…

8 months ago

Adaptive Re-Start Hybrid Genetic Algorithm (Test the Performance in Case Studies)

Hello everyone. In this post, I am going to show you my innovative version of…

1 year ago

Adaptive Re-Start Hybrid Genetic Algorithm in Matlab

Hello everyone! Let’s see how my innovative version of Genetic Algorithm, called Adaptive Re-start Hybrid…

1 year ago

Crypto Quiz (Test Your Knowledge About Cryptocurrency)

Hello everyone! Let’s take a short quiz, to test your knowledge about crypto-currency, or crypto.…

2 years ago