1
00:00:00,120 --> 00:00:07,770
Hello and welcome to this lecture, where we are going to solve the flight schedule problem now using

2
00:00:07,780 --> 00:00:09,900
Melrose Library.

3
00:00:10,170 --> 00:00:12,990
It's quite easier than the library.

4
00:00:13,350 --> 00:00:18,090
First, we need to create that fitness function.

5
00:00:18,230 --> 00:00:30,560
Melrose Dot's custom fitness and here we will, sans fitness functions and roles we define as the before

6
00:00:31,050 --> 00:00:34,500
let's run the schools to create the variable.

7
00:00:35,070 --> 00:00:42,120
Now we need to create the problem variable and Melrose dots.

8
00:00:42,660 --> 00:00:52,830
This gratz obesity because we have a problem composed only of indicators, the length of the solution

9
00:00:52,860 --> 00:01:00,240
equals 12 because there are six people and each pupil has two flights.

10
00:01:00,600 --> 00:01:13,980
Then we need to specify the fitness maximize equals flows when we want to run a minimization problem.

11
00:01:14,010 --> 00:01:25,770
We need to specify maximize equals falls and maks vowel equals stan because we want to generate the

12
00:01:25,770 --> 00:01:31,800
numbers from zero to nine, which indicates the flights.

13
00:01:32,070 --> 00:01:34,290
So we both stand here.

14
00:01:34,590 --> 00:01:37,500
Let's create the problem variable.

15
00:01:38,160 --> 00:01:41,640
There's a table here, run again.

16
00:01:42,120 --> 00:01:50,460
And finally, let's create based solution and best fitness equals and.

17
00:01:51,900 --> 00:01:54,660
Let's call genetic algorithm.

18
00:01:55,140 --> 00:02:06,840
And though just sans the problem population size five hundred and mutation probability zero point three

19
00:02:07,140 --> 00:02:17,580
the same parameters we use before we can now see the values based, solution based fitness.

20
00:02:18,420 --> 00:02:19,770
Run this code.

21
00:02:20,160 --> 00:02:30,390
We can see that we have worst results when comparing to the library so we can try to run needs more

22
00:02:30,390 --> 00:02:37,110
times to see if we will get bad results every time we run.

23
00:02:37,350 --> 00:02:47,700
We have different results and to visualize this schedule, we can just brands ours, schedule and our

24
00:02:47,700 --> 00:02:50,940
will sans the best solution.

25
00:02:51,450 --> 00:02:55,620
Run this code and we can take a look at the flights.

26
00:02:55,980 --> 00:03:06,170
The value is quite bigger than using the library, so it seems that this order library performs bad

27
00:03:06,180 --> 00:03:08,580
there in this particular problem.

28
00:03:08,910 --> 00:03:10,710
And that's all for this lecture.

29
00:03:10,980 --> 00:03:12,240
See you next time.
