A simple introduction to genetic algorithm

Using MATLAB Just-in-time compiler to solve the 0-1 Knapsack Problem with Genetic Algorithms. (Also as a project of a course in SJTU)

You are now following this Submission

In this project, we have given a brief introduction about the traditional methods to solve 0-1 Knapsack Problem, and subsequently introduced a simple example of GA method.
It has comprehensive descriptions and comments to help you understand what GA is, and you can realize your own GA method by imitating this .mix file.
<NOTICE>All functions are placed in files independently.
<NOTICE>All descriptions and comments are in Chinese.

=============================================================
Undoubtedly, it is not an excellent work, and we do have a lot work to do to improve this project:)

Cite As

Yunfan Qing (2026). A simple introduction to genetic algorithm (https://www.mathworks.com/matlabcentral/fileexchange/81628-a-simple-introduction-to-genetic-algorithm), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.1

Some file names have been modified

1.0.0