Memuat
Memuat
Genetic Algorithm for Industrial Engineering and Production
0 views
Optimise makespan by tuning number of jobs and number of machines with Genetic Algorithm. A genetic algorithm searches for optimal solutions by imitating evolution: selection, crossover, and mutation on a population of solutions. It suits nonlinear or combinatorial optimisation problems that are hard for gradient methods.

Optimise makespan by tuning number of jobs and number of machines with Genetic Algorithm.
| Role | Variable | Unit |
|---|---|---|
| Main | Makespan | jam |
| Supporting 1 | Number of jobs | - |
| Supporting 2 | Number of machines | - |
The genetic algorithm (population 24, 22 generations) minimises Makespan down to 17.14 at Number of jobs = 17.82 and Number of machines = 39.23, within 0.00% of the global optimum.
Computed from illustrative synthetic data, not from a real study.
A genetic algorithm searches for optimal solutions by imitating evolution: selection, crossover, and mutation on a population of solutions. It suits nonlinear or combinatorial optimisation problems that are hard for gradient methods.
Report GA parameters, the best solution, objective value, and convergence curves from several runs with different seeds. Compare with other methods to show solution quality.
A short starting script with this project's variable names. The delivered version is adapted to your data and fully commented.
import numpy as np
import matplotlib.pyplot as plt
def rastrigin(p):
return 20 + (p ** 2 - 10 * np.cos(2 * np.pi * p)).sum(axis=1)
rng = np.random.default_rng(31)
dim, pop_n, gens = 2, 60, 80
lo, hi = -5.12, 5.12
number_of_jobs = rng.uniform(lo, hi, (pop_n, dim)) # population
best_hist = []
for g in range(gens):
makespan = rastrigin(number_of_jobs) # cost (to minimise)
best_hist.append(makespan.min())
elite = number_of_jobs[makespan.argmin()].copy()
# tournament selection
idx = rng.integers(0, pop_n, (pop_n, 2))
win = np.where(makespan[idx[:, 0]] < makespan[idx[:, 1]], idx[:, 0], idx[:, 1])
parents = number_of_jobs[win]
# blend crossover
mates = parents[rng.permutation(pop_n)]
alpha = rng.random((pop_n, 1))
child = alpha * parents + (1 - alpha) * mates
# gaussian mutation
mask = rng.random(child.shape) < 0.1
child = child + mask * rng.normal(0, 0.3, child.shape)
child = np.clip(child, lo, hi)
child[0] = elite
number_of_jobs = child
final = rastrigin(number_of_jobs)
print("Best cost:", round(final.min(), 5))
print("Best solution:", number_of_jobs[final.argmin()].round(4))
plt.plot(best_hist)
plt.xlabel("Generation"); plt.ylabel("Best cost")
plt.show()Choose how much help you need. Each higher package includes everything in the lower ones. Prices exclude 11% VAT.
Package 1
US$31
excl. 11% VAT
Duration: 7 working days
Output: Python files + result figures
Deliverables
Package 2 · most chosen
US$91
excl. 11% VAT
Duration: 13 working days
Output: Code + analysis + interpretation notes
Includes all of Package 1, plus
Package 3
US$200
excl. 11% VAT
Duration: 18-21 working days
Output: Code + analysis + guidance until ready to present
Includes all of Packages 1 & 2, plus
Yes. Genetic Algorithm is commonly used at this level in Industrial Engineering and Production. We adapt the analysis to your research question, your own data and your supervisor's requirements.
No. The sheet is computed from illustrative synthetic data so you can see the kind of output Python gives. For your order we run the same method on your own data.
That is the point of the packages. Every script is commented, and Package 3 includes two coaching sessions plus practice questions so you can explain the method and the results at your seminar and defence.
Each project has three packages: Package 1 (code and explanation) US$31, Package 2 (your data analysis and interpretation) US$91 and Package 3 (full guidance) US$200, excluding 11% VAT. Larger datasets, extra methods or tight deadlines adjust the quote after a short consultation.
The result sheet uses illustrative synthetic data. Python is a trademark of the Python Software Foundation.
Back to Python portfolio