You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+48-26Lines changed: 48 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,23 +47,27 @@ Sim-opt combines simulation and optimization techniques to provide a comprehensi
47
47
<br>
48
48
49
49
**[Benefits]() of Sim-Opt**
50
-
***[Analyzing uncertain scenarios]():** Sim-opt evaluates the impact of unpredictable events and helps plan strategies to manage risks[1].
51
-
***[Optimizing processes]():** It identifies bottlenecks and opportunities for improvement and defines the best practices for various situations[1].
52
-
***[Making informed decisions]():** Sim-opt bases decisions on data and simulations, reducing uncertainty and the risk of errors[1].
50
+
***[Analyzing uncertain scenarios]():** Sim-opt evaluates the impact of unpredictable events and helps plan strategies to manage risk.
51
+
***[Optimizing processes]():** It identifies bottlenecks and opportunities for improvement and defines the best practices for various situations.
52
+
***[Making informed decisions]():** Sim-opt bases decisions on data and simulations, reducing uncertainty and the risk of errors.
53
53
54
54
<br>
55
55
56
56
**[How to Implement Optimization]() in Simulation Models**
57
57
58
-
1.**[Define decision variables]():** Identify the variables that affect the simulation model's outputs and will be tested by the optimization algorithm[3].
59
-
2.**[Define variable types and limits]():** Determine whether each decision variable is real or integer and set lower and upper limits. The optimization algorithm will search for solutions within these limits[3].
60
-
3.**[Define the objective function]():** Establish a function to evaluate the solutions tested by the algorithm. This function can be designed to minimize, maximize, or use both types of variables, depending on the study's objectives[3].
61
-
4.**[Select population size]():** Choose the number of solutions for the evolutionary algorithm. The population size affects the reliability and time required for the search. Also, define other parameters such as the required precision, significance level, and number of replications[3].
62
-
5.**[Analyze solutions]():** After the search, analyze the solutions found. Compare all solutions based on the objective function to identify the best and other competitive solutions[3].
58
+
1.**[Define decision variables]():** Identify the variables that affect the simulation model's outputs and will be tested by the optimization algorithm.
59
+
60
+
2.**[Define variable types and limits]():** Determine whether each decision variable is real or integer and set lower and upper limits. The optimization algorithm will search for solutions within these limits.
61
+
62
+
3.**[Define the objective function]():** Establish a function to evaluate the solutions tested by the algorithm. This function can be designed to minimize, maximize, or use both types of variables, depending on the study's objectives.
63
+
64
+
4.**[Select population size]():** Choose the number of solutions for the evolutionary algorithm. The population size affects the reliability and time required for the search. Also, define other parameters such as the required precision, significance level, and number of replications.
65
+
66
+
5.**[Analyze solutions]():** After the search, analyze the solutions found. Compare all solutions based on the objective function to identify the best and other competitive solutions.
63
67
64
68
<br>
65
69
66
-
The [key difference]() between sim-opt and other analytical tools is its [ability to model the complexity and dynamics of real-world systems](), including data uncertainty and variability[1]. This allows for the creation of more robust and adaptable plans[1].
70
+
The [key difference]() between sim-opt and other analytical tools is its [ability to model the complexity and dynamics of real-world systems](), including data uncertainty and variability. This allows for the creation of more robust and adaptable plans.
67
71
68
72
<br><br>
69
73
@@ -93,7 +97,7 @@ $$
93
97
<br>
94
98
95
99
96
-
## [Simplex Algorithm]()
100
+
## [Simplex Algorithm]():
97
101
98
102
The simplex algorithm is used to solve linear problems. Although there isn't a specific command for it, we can describe it in text or use tables to show the steps of the algorithm.
99
103
@@ -319,10 +323,15 @@ The **graphical method** for solving simple linear programming (LP) problems inv
319
323
320
324
321
325
-**[Feasible Solution]():** A solution $\(x_1, x_2)\$ that satisfies all the constraints of the problem.
326
+
322
327
-**[Feasible Region]():** The set of all feasible solutions. Graphically, this is a subregion of the plane formed by the intersection of the regions defined by the constraints. The feasible region is often a **convex polygon**.
328
+
323
329
-**[Boundary Line]():** Each equality constraint or the equality part of an inequality constraint represents a straight line in the graph.
330
+
324
331
-**[Semiplane]():** Each inequality constraint defines a half-plane on one side of its boundary line, including the line itself. The feasible region is the intersection of these semiplanes.
332
+
325
333
-**[Vertices]() (Extreme Points):** The corner points of the feasible region, formed by the intersection of two or more boundary lines.
334
+
326
335
-**[Optimal Solution]():** A feasible solution that yields the best (maximum for maximization problems, minimum for minimization problems) value of the objective function.
327
336
328
337
@@ -351,6 +360,7 @@ The **graphical method** for solving simple linear programming (LP) problems inv
351
360
<br>
352
361
353
362
5.**[Determine the Optimal Solution]():**
363
+
354
364
* For a **maximization** problem, the vertex that yields the **largest** value of the objective function is the optimal solution [1, 6].
355
365
* For a **minimization** problem, the vertex that yields the **smallest** value of the objective function is the optimal solution [2, 7].
@@ -1230,7 +1240,7 @@ The transportation problem is a type of **linear programming** model where the o
1230
1240
1231
1241
<br>
1232
1242
1233
-
## [The Case of Unbalanced Systems]():
1243
+
###[The Case of Unbalanced Systems]():
1234
1244
1235
1245
The standard transportation model assumes total supply equals total demand. However, in real-world scenarios, systems can be **unbalanced**.
1236
1246
@@ -1408,10 +1418,13 @@ This is a method to generate an initial feasible solution without considering tr
1408
1418
1409
1419
1.**Start in the top-left (northwest) corner** of the transportation table.
1410
1420
- This is always cell $begin:math:text$ x_{11} $end:math:text$.
1421
+
1411
1422
2.**Allocate as much as possible** to the selected cell, respecting the available supply and demand.
1423
+
1412
1424
3.**Block the row or column** where the supply or demand has been fully used (but only one if both are zero simultaneously).
1413
1425
- Mark the blocked row/column with an 'x'.
1414
1426
- This ensures that some basic variables have zero values (necessary for basic feasible solution).
1427
+
1415
1428
4.**Repeat** the steps with the next unblocked cell in the top-left of the remaining matrix.
1416
1429
1417
1430
🔁 Continue until all cells are either allocated or blocked.
@@ -1429,9 +1442,13 @@ This method takes into account the transportation costs to guide the initial all
1429
1442
## ➢ [Steps]():
1430
1443
1431
1444
1.**Identify the cell with the lowest unit cost** in the cost matrix among the remaining unallocated cells.
1445
+
1432
1446
2.**Allocate as much as possible** to this cell, without exceeding supply or demand constraints.
1447
+
1433
1448
3.**Adjust the supply and demand** for the row and column of the allocated cell.
1449
+
1434
1450
4.**Remove** (cross out) the row or column where supply or demand becomes zero. If both are zero simultaneously, cross out only one to maintain feasibility.
1451
+
1435
1452
5.**Repeat** the steps until all supplies and demands are met.
1436
1453
1437
1454
<br>
@@ -1451,7 +1468,7 @@ This method takes into account the transportation costs to guide the initial all
1451
1468
1452
1469
<br>
1453
1470
1454
-
This makes the model highly applicable to **supply chain risk management, disaster response logistics, and critical infrastructure planning**.
1471
+
### This makes the model highly applicable to **supply chain risk management, disaster response logistics, and critical infrastructure planning**.
1455
1472
1456
1473
<br>
1457
1474
@@ -1477,7 +1494,7 @@ The transportation problem provides a clear, visual way to:
1477
1494
<br>
1478
1495
1479
1496
1480
-
It's a cornerstone of **Operational Research**, **Logistics**, and **Decision Science**.
1497
+
### It's a cornerstone of **Operational Research**, **Logistics**, and **Decision Science**.
1481
1498
1482
1499
<br>
1483
1500
@@ -1498,9 +1515,9 @@ The initial solution obtained via the Northwest Corner Method has a total cost o
1498
1515
1499
1516
## [Step 1](): Optimality Check Using Multipliers
1500
1517
1501
-
####- [**Multipliers calculation**]():
1518
+
### - [**Multipliers calculation**]():
1502
1519
1503
-
####- Set $u_1 = 0$, leading to $v_1 = 12$, $u_2 = 6$, $v_2 = 18$, $u_3 = -3$, and $v_3 = 37$.
1520
+
### - Set $u_1 = 0$, leading to $v_1 = 12$, $u_2 = 6$, $v_2 = 18$, $u_3 = -3$, and $v_3 = 37$.
1504
1521
1505
1522
```latex
1506
1523
u_1 = 0, leading to v_1 = 12, u_2 = 6, v_2 = 18, u_3 = -3, and v_3 = 37.
@@ -1523,10 +1540,13 @@ u_1 = 0, leading to v_1 = 12, u_2 = 6, v_2 = 18, u_3 = -3, and v_3 = 37.
### - The improved solution after one iteration is not optimal. Continued iterations are required, focusing on variables like $x_{13}$ (reduced cost: $-6$) to further reduce costs.
1573
1593
1574
-
#### - The transportation algorithm must [repeat]() until [all reduced costs]() are non-negative.
1594
+
### - The transportation algorithm must [repeat]() until [all reduced costs]() are non-negative.
1595
+
1596
+
### This analysis highlights the iterative nature of the transportation algorithm and the [importance of accurately recalculating multipliers and reduced costs at each step]().
1575
1597
1576
-
#### This analysis highlights the iterative nature of the transportation algorithm and the [importance of accurately recalculating multipliers and reduced costs at each step]().
1577
1598
1578
1599
<br>
1579
1600
1601
+
1580
1602
## [Transportation Problem Solution]():
1581
1603
1582
1604
### [**Problem Statement**]()
1583
1605
1584
-
####Determine the optimal solution for the transportation problem using the transportation algorithm, starting from the initial basic feasible solution obtained by the Northwest Corner Method.
1606
+
### Determine the optimal solution for the transportation problem using the transportation algorithm, starting from the initial basic feasible solution obtained by the Northwest Corner Method.
0 commit comments