top of page
Search


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
Â
Â


A Unified Method for Numerical Integration
Trapezoidal rule Simpson's 1/3 rule
Adisorn O.
Dec 27, 20231 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
Â
Â


Understanding Lower and Upper Bound Theorem for Collapse Load Analysis of Structures
The lower-bound and upper-bound collapse load theorems are fundamental concepts in structural engineering, particularly in the field of...
Adisorn O.
Dec 8, 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 !...
Adisorn O.
Dec 3, 20231 min read
Â
Â


Gradient Descent Method: Considerations for complex search landscape
Since the sphere and Matyas functions contain only one global minimum, Gradient descent is effectively used to find that minimum at...
Adisorn O.
Oct 21, 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...
Adisorn O.
Oct 14, 20234 min read
Â
Â


Numpy's Cheat sheet for ML from datacamp.com
# Import the library import numpy as np # Create a 1D array a = np.array([1, 2, 3]) # Create a 2D array b = np.array([[1, 2, 3], [4, 5,...
Adisorn O.
Jul 19, 20231 min read
Â
Â


Panda's Cheat Sheet for ML
# Import the library import pandas as pd # Create a DataFrame df = pd.DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6]}) # Read a CSV file df =...
Adisorn O.
Jul 19, 20231 min read
Â
Â
bottom of page







