%%%%% Define The Matrix %%%%

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Name: Shreyan Ghosh

Subject Code: CHE 801A

University Roll No: 10300616019

1. How do you detect an unbound solution in the simplex procedure?


Ans: 1) Choose the variable with the greatest positive Cj - Zj value to enter the  solution.
2) Determine the row to be replaced by selecting the one with the smallest (non-negative) ratio of
quantity to pivot column.
3) Calculate the new values for the pivot row.
4) Calculate the new values for the other row(s).

2. Find all the basic solutions corresponding to the system of equations?

2X1 + 3X2 – 2X3 -7X4 =1

X1 +X2 + X3 +3X4 =6

–X2 +X3 +5X4 =4

Ans:

%%%%% Define the matrix %%%%

A=[2 3 -2 7;1 1 1 3;0 -1 1 5]

%%%%% Define function matrix %%%

b=[1;6;4]

%%%%% Solve using Gauss Elimination Technique %%%%%

x=A\b

%%%%% Display the result the matrix X%%%%%

x1=x(1);
x2=x(2);
x3=x(3);
x4=x(4);

%%%%%% Verification of b %%%%

b_verify=A*x
####### Results############

x1= 0

x2= 1.4444

x3= 3.2222

x4=0.4444

3.Assume that an ordinary mercury-in-glass thermometer follows first order dynamics with a time
constant of

10s. It is at a steady state temperature of 0°C. At time t = 0, the thermometer is suddenly immersed
in a

constant temperature bath at 100°C. The time required (in s) for the thermometer to read 95°C,
approximately

is

(A) 60 (B) 40 (C) 30 (D) 20

Ans= A(60)

T_fin=T_in+Delta_T(1-exp(t/tau))

You might also like