top of page
Search


Adisorn O.
Mar 24, 20241 min read
Â
Â


Compute the Minimum Distance between 2 sets of coordinates
The code will compute and get the minimum distance between 2 sets of arbitrary numbers of points in 2D space. It also draws the lines...
Adisorn O.
Feb 24, 20241 min read
Â
Â


Firefly Algorithm: Part 3 -- Design Example
Fig.2 Convergence plot (n = 20, maxGen = 20) This design example shows how the Firefly algorithm can be applied to the gravity wall...
Adisorn O.
Feb 23, 20241 min read
Â
Â


Introduction to Julia and comparison with MATLAB syntax
OpenAI. (2024). ChatGPT (4) [Large language model]. https://chat.openai.com Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and Alan...
Adisorn O.
Feb 23, 20243 min read
Â
Â


Firefly Algorithm: Part 2 -- Algorithm explained
It is convenient to explain the algorithm from the pseudo code. Considering the algorithm of Firely as given in Yang (2008). Randomly...
Adisorn O.
Feb 23, 20241 min read
Â
Â


Firefly Algorithm (FA): Part I -- Introduction & Concept
Adisorn Owatsiriwong ALPS Consultants Introduction: Firefly algorithm is another metaheuristic approach for global optimization. The...
Adisorn O.
Feb 23, 20242 min read
Â
Â
Problem Size Reduction using Basis Vectors: Part I -- Concept
The design variables or problem dimension can be obtained from the given basis solution vectors. That means we are solving the problem by...
Adisorn O.
Feb 18, 20241 min read
Â
Â


Adisorn O.
Feb 17, 20240 min read
Â
Â


Adisorn O.
Feb 15, 20240 min read
Â
Â


PSO algorithm for Multi-Objective Optimization: Part 1- Development Concept
Adisorn Owatsiriwong, D.Eng. The PSO framework for Multi-objective optimization (MOO) can be evolved from PSO code for single-objective...
Adisorn O.
Feb 6, 20241 min read
Â
Â


Introduction to Particle Swarm Optimization (Diagrams GPT)
Mindmap Flow chart
Adisorn O.
Feb 4, 20241 min read
Â
Â


Solving nonlinear constrained optimization -- Part 1 equality constraint)
NL optimization problem with equality constraint can be posted as: Min f(x) h_j(x) = 0, j = 1..n We can use Lagrange multiplier to...
Adisorn O.
Dec 10, 20231 min read
Â
Â


Example: Maximize flow for a trench section
The F90 code is written by program app_1 implicit none real :: x, up, upp, u, dx real,parameter :: pi = 3.1416 integer :: i u(x) =...
Adisorn O.
Dec 6, 20231 min read
Â
Â


Example: Solving nonlinear constraint optimization problem using Lagrange Multiplier
The solution is L1 = 3.33 m, L2 = 6.67 m with Lambda = -0.5547. The value of lambda is negative in this problem. The F90 code is shown...
Adisorn O.
Dec 6, 20231 min read
Â
Â


F90 subroutine for Gauss Elimination with partial pivoting
! Main Program PROGRAM SolveLinearSystem IMPLICIT NONE REAL, DIMENSION(3, 3) :: A REAL, DIMENSION(3) :: b INTEGER :: n ! Define the...
Adisorn O.
Dec 6, 20232 min read
Â
Â


FORTRAN 95 Cheat Sheet
! Program Structure: PROGRAM ProgramName ! Declarations and statements CONTAINS ! Subroutines and functions END PROGRAM ProgramName ! Variable Declaration: INTEGER :: int_var REAL :: real_var DOUBLE PRECISION :: dbl_var CHARACTER(LEN=20) :: char_var ! Arrays: REAL, DIMENSION(3) :: real_array INTEGER, DIMENSION(0:9) :: int_array ! Control Structures: IF (condition) THEN ! code block ELSE ! code block END IF DO i = start, stop, step ! code block END DO SELECT CASE (va
Adisorn O.
Dec 3, 20231 min read
Â
Â


Multi-Objective Optimization Problems: Part 1
Adisorn Owatsiriwong, D.Eng. In real life, the best solution that fulfills a single objective function might not be the best solution for others. It's rare to obtain one solution that beats all objectives. This gives us the motivation to solve multi-objective optimization problems. Considering a cantilever beam subjected to loading at the far end, the design objective might be f1: Minimum deflection f2: Minimum material volume or weight The beam design problem is u
Adisorn O.
Oct 14, 20234 min read
Â
Â


Adisorn O.
May 1, 20230 min read
Â
Â
bottom of page




