Starting from:

$25

ORL-Lab 1 Solved

 

Class 1 

 

1.     Write a program for Gauss Seidel algorithm.  

2.     Use this algorithm as a function and solve π‘š simultaneous equations with 𝑛 unknowns (π‘š < 𝑛) to obtain basic solutions.  

3.     Check your program for the following examples and find the basic solutions. Consider the non-negativity constraint for all. 

a.     2π‘₯! + 3π‘₯" βˆ’ 2π‘₯# βˆ’ 7π‘₯$ = 1, π‘₯! + π‘₯" + π‘₯# + 3π‘₯$ = 6, π‘₯! βˆ’ π‘₯" + π‘₯# + 5π‘₯$ = 4. 

b.     2π‘₯! + π‘₯" βˆ’ π‘₯# = 2, 2π‘₯! βˆ’ π‘₯" + 5π‘₯# = 6, 4π‘₯! + π‘₯" + π‘₯# = 6. 

c.     π‘₯! βˆ’ 3π‘₯# + 3π‘₯$ = 6, π‘₯" βˆ’ 8π‘₯# + 4π‘₯$ = 4. 

d.     5π‘₯! + 4π‘₯" + 2π‘₯# = .6, 7π‘₯! + 2π‘₯" + π‘₯# = .35. 

e.      !" π‘₯! + 2π‘₯" + π‘₯# = 24, π‘₯! + 2π‘₯" + 4π‘₯# = 60. 
 

More products