@@ -415,7 +415,55 @@ In the context of Linear Programming (LP) and the Simplex Method, Excel Solver c
415
415
<br >
416
416
417
417
418
- ## [ Solver Configuration (Simplex LP)] ( ) :
418
+ ## Simplex Method using Excel Solver
419
+
420
+ This example shows how to solve a Linear Programming (LP) problem using the ** Simplex Method** via ** Excel Solver** .
421
+
422
+ ---
423
+
424
+ ### Problem
425
+
426
+ Maximize the objective function:
427
+
428
+ Z = 3x + 5y
429
+
430
+ Subject to the constraints:
431
+
432
+ x + 2y ≤ 100
433
+ 2x + y ≤ 80
434
+ x, y ≥ 0
435
+
436
+ ---
437
+
438
+ ### Excel Spreadsheet Setup
439
+
440
+ Fill the spreadsheet with the following structure:
441
+
442
+ #### Variables and Objective
443
+
444
+ | Cell | Description | Formula / Value |
445
+ | ------| ------------------------| ----------------------|
446
+ | B1 | x (Decision Variable) | * (leave blank)* |
447
+ | B2 | y (Decision Variable) | * (leave blank)* |
448
+ | B3 | Objective Function Z | ` =3*B1 + 5*B2 ` |
449
+
450
+ #### Constraints Left-Hand Side (LHS)
451
+
452
+ | Cell | Description | Formula |
453
+ | ------| ----------------------------| ---------------------|
454
+ | B5 | Constraint 1 LHS | ` =1*B1 + 2*B2 ` |
455
+ | B6 | Constraint 2 LHS | ` =2*B1 + 1*B2 ` |
456
+
457
+ #### Constraints Right-Hand Side (RHS)
458
+
459
+ | Cell | Description | Value |
460
+ | ------| ----------------------------| ---------------------|
461
+ | C5 | Constraint 1 RHS | ` 100 ` |
462
+ | C6 | Constraint 2 RHS | ` 80 ` |
463
+
464
+ ---
465
+
466
+ ### Solver Configuration (Simplex LP)
419
467
420
468
1 . Go to ` Data ` > ` Solver ` .
421
469
2 . Set Objective Cell: ` B3 `
@@ -429,15 +477,30 @@ In the context of Linear Programming (LP) and the Simplex Method, Excel Solver c
429
477
6 . Choose ** Simplex LP** as the solving method.
430
478
7 . Click ** Solve** .
431
479
432
- <br >
480
+ ---
481
+
482
+ ### Solution
483
+
484
+ After running Solver
485
+
486
+ x = 20
487
+ y = 40
488
+ Z = 320 + 540 = 260
433
489
434
- ## [ Example Excel Solver Example – Linear Programming with Simplex] ( )
490
+
491
+ Z = 260
492
+
493
+
494
+ ——
495
+
496
+
497
+ ## Excel Solver Example – Linear Programming with Simplex
435
498
436
499
This example demonstrates how to use Excel Solver to solve a Linear Programming problem using the ** Simplex Method** .
437
500
438
- ### [ Problem Statement] ( ) :
501
+ ### Problem Statement
439
502
440
- [ Maximize] ( ) :
503
+ Maximize:
441
504
442
505
Z = 40x + 30y
443
506
@@ -448,9 +511,7 @@ x + 2y ≤ 50
448
511
x, y ≥ 0
449
512
450
513
451
- <br >
452
-
453
- ### [ Excel Setup] ( ) :
514
+ ### Excel Setup
454
515
455
516
| Cell | Description | Formula / Value |
456
517
| ------| --------------------------| ---------------------|
@@ -460,17 +521,12 @@ x, y ≥ 0
460
521
| B5 | Constraint 1 (LHS) | ` =2*B1 + 1*B2 ` |
461
522
| B6 | Constraint 2 (LHS) | ` =1*B1 + 2*B2 ` |
462
523
463
-
464
- <br >
465
-
466
524
| Cell | Constraint RHS | Value |
467
525
| ------| --------------------------| ---------------------|
468
526
| C5 | Constraint 1 (RHS) | 40 |
469
527
| C6 | Constraint 2 (RHS) | 50 |
470
528
471
- <br >
472
-
473
- ### [ Solver Configuration] ( ) :
529
+ ### Solver Configuration
474
530
475
531
1 . Set Objective: ** B3**
476
532
2 . To: ** Maximize**
@@ -484,53 +540,13 @@ x, y ≥ 0
484
540
485
541
Click ** Solve** to find the optimal solution.
486
542
487
- <br >
488
-
489
- ### [ Solution Output] ( ) :
543
+ ### Solution Output
490
544
491
545
After running Solver:
492
546
493
547
- ** x = 10**
494
548
- ** y = 20**
495
549
- ** Z = 40×10 + 30×20 = 1000**
496
-
497
- <br >
498
-
499
- ### Solver Configuration (Simplex LP)
500
-
501
- 1 . Go to ` Data ` > ` Solver ` .
502
- 2 . Set Objective Cell: ` B3 `
503
- 3 . Select: ** Max**
504
- 4 . By Changing Variable Cells: ` B1:B2 `
505
- 5 . Add Constraints:
506
- - ` B5 <= C5 `
507
- - ` B6 <= C6 `
508
- - ` B1 >= 0 `
509
- - ` B2 >= 0 `
510
- 6 . Choose ** Simplex LP** as the solving method.
511
- 7 . Click ** Solve** .
512
-
513
-
514
- ### [ Solution] ( )
515
-
516
- After running Solver
517
-
518
- x = 20
519
- y = 40
520
- Z = 320 + 540 = 260
521
-
522
-
523
- Z = 260
524
-
525
-
526
-
527
-
528
-
529
-
530
-
531
-
532
-
533
-
534
550
535
551
536
552
0 commit comments