top of page
Search


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


Newton-Raphson Method for solving nonlinear equation system and unconstrainted optimization problem
[updated 6.12.2023] For optimization problem, the optimum solution of (x1,x2) is found by setting the derivative of objectives of...
Adisorn O.
Apr 29, 20231 min read
Â
Â
bottom of page
