Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what is 'bestSol' mean? #2

Open
Benknightdark opened this issue Jan 28, 2016 · 1 comment
Open

what is 'bestSol' mean? #2

Benknightdark opened this issue Jan 28, 2016 · 1 comment

Comments

@Benknightdark
Copy link

Hi, oahziur, I'm Ben. I have a problem about the 'bestSol' variable. Here is the sample code.

interations=100;
m = 5;
n = 10;
J = [111,22,13,64,70,70,53,55,95,70];
[costs, bestSol] = GA(J, m, iterations);

When I use disp(bestSol), the console window output this matrix

4 1 1 3 5 2 2 5 1 3

Could you help me to interpret this matrix ? I don't know what is that mean.
thanks a lot and have a nice day.

@oahziur
Copy link
Owner

oahziur commented Jan 30, 2016

Hi Ben,

You can check the project description here. bestSol is basically the best solution so far, which is a schedule matrix.

4 1 1 3 5 2 2 5 1 3 basically means first job is on machine 4, second job is on machine 1, third job is on machine 1, etc.

Please note that all of these methods are heuristic algorithms; thus, the solution is sub-optimal. Hope this help.

Repository owner deleted a comment from yuanye2005king Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants