
Learn MATLAB basics, including its numerical computation and visualization use, Matrix Laboratory abbreviation, built-in functions and toolboxes, and the interface elements: menu bar, editor, command window, workspace, folders.
Learn variables and operators in MATLAB, where every variable is a matrix. See how to name variables, perform arithmetic and relational operations, and store results in the workspace, like ans.
Learn to declare vectors in MATLAB by constructing one-by-three and three-by-one matrices with brackets, spaces, commas, or semicolons; use colon, linspace, and transpose to manipulate vector layouts.
Master indexing and the size of vectors in MATLAB, using x(i), x(i:j), x(end), and the colon operator to select all rows or columns.
Explore matrix operations in MATLAB, including scalar operations on vectors, matrix addition and subtraction, matrix multiplication rules, and element-wise operations with dot notation.
Learn MATLAB’s rand and randi to generate random numbers and matrices, from 0–1 values to 1–max integers, and use repmat to repeat matrices or create matrices with elements the same.
Explore conditional logic in MATLAB with if, elseif, and else, and end to compare two numbers and compute the appropriate difference (A-B, B-A, or 0).
Learn how to use for loops in MATLAB to repeat actions efficiently, including basic syntax, summation of numbers, and nested loops for matrices.
Explore while loops in MATLAB, compare them with for loops, learn the syntax and end condition, and implement examples that sum the first 25 integers to 325.
Learn how to declare and use functions in MATLAB, including inputs, outputs, file-based or end-of-code definitions, and a practical average function example with vectors.
Explore 2D plotting in MATLAB by using the plot command to graph y = x^2, customize line styles, colors, and markers, and overlay charts with hold on and hold off.
Explore optimization concepts, including constrained and unconstrained problems, objective functions, and decision variables, via a cantilever beam design and feasibility in multimodal landscapes.
Constraints shape the optimal solution: the unconstrained minimum is -2.25 at x=2.5, but enforcing f(x) >= 0 yields minima at x=1 and x=4, and adding x >= 2.5 selects x=4.
Explore key terminologies in nature-inspired optimization, such as random solution, population, fitness function, and generation. Learn the basic pseudo-code steps and how evolutionary and swarm intelligence algorithms use them.
Explore the inspiration behind genetic algorithms, tracing John Holland's 1970s work to natural selection. Learn the four stages—selection, crossover, mutation, evaluation—and how fitness guides optimization in MATLAB.
Use roulette wheel selection with fitness-based probabilities and cumulative probabilities from f(x1,x2)=x1^2+x2^2 within -5 to 5 to pick two parents for crossover.
Learn crossover between two parents to produce two offspring using alpha, clip any out-of-bounds values to -5 or 5, then mutate a single gene with sigma perturbation and recheck bounds.
Evaluate the fitness of nine genetic algorithm solutions, retain the six best, discard the rest, and perform hundreds of iterations toward the best solution, before learning MATLAB implementation.
Learn how to implement a genetic algorithm in MATLAB to solve the unconstrained Matyas function, with a global minimum at zero in the -10 to 10 domain.
Formulate the Matyas function problem in MATLAB by setting bounds for two decision variables, determining their count, and defining the x limit matrix.
Initialize a random population matrix X, scale to xmin and xmax for P by D, compute Z with the Matyas function, and store the best cost and parameters.
In MATLAB, this lecture builds the genetic algorithm's main loop: compute fitness, derive selection probabilities via roulette wheel, and perform uniform crossover for Matyas function solutions.
Describe mutation in the Matyas function: randomly pick a parent, mutate one variable using a normally distributed perturbation, via a dedicated mutate function.
Learn to merge crossover and mutation results into a population, apply truncation and natural selection, track the best objective function, and plot convergence over iterations in MATLAB.
Run the MATLAB genetic algorithm to optimize the Matyas function. Observe convergence to a near-zero objective value after about 600 iterations, with x1 and x2 approaching zero.
Explore solving the Rosenbrock function as a constrained optimization using a disk-restricted roadblock. Learn how x^2 + y^2 <= 2 and bounds -1.5 to 1.5 guide the genetic algorithm.
Learn to solve a constraint optimization of the Rosenberg function with a genetic algorithm by adding a constraint function and lambda penalties, and adjusting limits to -1.5 to 1.5.
Apply a genetic algorithm to minimize porosity in aluminium alloy die casting, using the porosity equation and parameter bounds, and reproduce the cited study's 0.25 minimum in MATLAB.
Code a genetic algorithm in MATLAB to optimize porosity in a capstone project, adjust lower and upper bounds for decision variables, and implement the porosity function.
This course is specifically developed for B. Tech. and M. Tech/MS students of all Engineering disciplines. Especially the students of Mechanical, Electrical, Automobile, Chemical, Aeronautical, Electronics, Computer science, Instrumentation, Mechatronics, Manufacturing, Robotics and Civil Engineering can learn MATLAB basics and solve Engineering Optimization problems in their area as part of mini-project or capstone project. In addition to this, the course is also useful to Ph. D. students of different engineering branches. The course is designed in such a way that the student who is not well versed with MATLAB programing can learn the basics of MATLAB in the first part so that it is easy for him/her to understand MATLAB implementation of Genetic Algorithm to solve simple and advanced Engineering problems. The content is so organized that the learner should be able to understand Engineering optimization from scratch and solve research problems leading to publication in an international journal of high repute. It should be useful to students of all universities around the world.
This course is divided into FOUR Parts
Part I - Basics of MATLAB Programming
Part 2 - Concept of Genetic Algorithm
Part 3 - MATLAB Implementation of GA to solve benchmark functions
Part 4 - Capstone Project (MATLAB Implementation of GA to solve a typical Engineering optimization Problem)