I have the following problem
A steel company has four different types of scrap metal (called Typ-1 to Typ-4) with
the following compositions per unit of volume
They need to determine the volumes to blend from each type of scrap metal so that
the resulting mixture has the following amounts of Al, Si, C, and Fe:
Al - 9 , Si - 6 , C - 8.0 , Fe - 190.0.
Determine volumes of each the 4 scrap metals Typ-1, Typ-2, Typ-3, Typ-4 to blend in
order to reach the desired amounts of Al, Si, C, Fe. Formulate the system and solve it
using matlab (’back-slash’).
However when I go to Matlab, I am using Octave, and enter the following commands
m = [5 3 4 88; 7 6 5 82; 2 1 3 94; 1 2 1 96] R = [9;6;8;190]
m\R ans =
22.6980 18.6980 -90.7020 2.2980
How can the amount for type3 be negative?
You should not be trying to solve the system $mx = R$. That is nonsensical because you are not adding together columns of the matrix $m$. Try solving $m^Tx = R$ instead.