Memuat
Memuat
Genetic Algorithm (ga) for Chemical and Process Engineering
0 views
Optimise total annual cost with respect to number of theoretical stages and reflux ratio using Genetic Algorithm (ga). The genetic algorithm in MATLAB (ga) finds a global optimum by evolving a population of solutions without needing derivatives. It suits non-smooth or multi-minimum objectives and design problems with mixed variables.

Optimise total annual cost with respect to number of theoretical stages and reflux ratio using Genetic Algorithm (ga).
| Role | Variable | Unit |
|---|---|---|
| Main | total annual cost | - |
| Supporting 1 | number of theoretical stages | - |
| Supporting 2 | reflux ratio | - |
The genetic algorithm finds number of theoretical stages=0.811 and reflux ratio=0.848 with best total annual cost=0.000 after 45 generations (1752 evaluations); population spread shrinks from 2.91 to 0.00.
Computed from illustrative synthetic data, not from a real study.
The genetic algorithm in MATLAB (ga) finds a global optimum by evolving a population of solutions without needing derivatives. It suits non-smooth or multi-minimum objectives and design problems with mixed variables.
Report ga settings, the mean and standard deviation of best values over several runs, and the best solution. Compare with gradient-based solvers to show the advantage on multimodal problems.
A short starting script with this project's variable names. The delivered version is adapted to your data and fully commented.
total_annual_cost = @(x) 20 + sum(x.^2 - 10*cos(2*pi*x)); % Rastrigin function
nvars = 2; lb = [-5.12 -5.12]; ub = [5.12 5.12];
opts = optimoptions('ga', 'PopulationSize', 80, 'MaxGenerations', 100, ...
'Display', 'off', 'FunctionTolerance', 1e-10);
nrun = 5;
best = zeros(nrun, 1); sols = zeros(nrun, nvars);
for r = 1:nrun
rng(r);
[sols(r,:), best(r)] = ga(total_annual_cost, nvars, [], [], [], [], lb, ub, [], opts);
end
fprintf('Best values over %d runs: %s\n', nrun, mat2str(best', 4));
fprintf('Mean = %.4f, SD = %.4f\n', mean(best), std(best));
[~, ib] = min(best);
number_of_theoretical_stages = sols(ib, :);
fprintf('Best solution: [%.4f %.4f]\n', number_of_theoretical_stages(1), number_of_theoretical_stages(2));
rng(1);
[~, ~, ~, out] = ga(total_annual_cost, nvars, [], [], [], [], lb, ub, [], opts);
fprintf('Generations used: %d, function evaluations: %d\n', out.generations, out.funccount);
figure; bar(best); xlabel('Run'); ylabel('Best objective');Choose how much help you need. Each higher package includes everything in the lower ones. Prices exclude 11% VAT.
Package 1
US$38
excl. 11% VAT
Duration: 7 working days
Output: MATLAB files + result figures
Deliverables
Package 2 · most chosen
US$103
excl. 11% VAT
Duration: 13 working days
Output: Code + analysis + interpretation notes
Includes all of Package 1, plus
Package 3
US$228
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 (ga) is commonly used at this level in Chemical and Process Engineering. 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 MATLAB 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$38, Package 2 (your data analysis and interpretation) US$103 and Package 3 (full guidance) US$228, excluding 11% VAT. Larger datasets, extra methods or tight deadlines adjust the quote after a short consultation.
The result sheet uses illustrative synthetic data. MATLAB is a trademark of The MathWorks, Inc.
Back to MATLAB portfolio