Matlab - AYUDA URGENTE con Ejercicio de transporte

 
Vista:
sin imagen de perfil

AYUDA URGENTE con Ejercicio de transporte

Publicado por Estudiante (2 intervenciones) el 13/04/2018 16:08:16
Program-Lineal

Me han dejado este ejercicio en la Universidad y no tengo idea de como resolverlo.

La plantilla de ejemplo que me dan, es la siguiente (aqui esta completa pero con otros datos)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
f = [1;1];
A = [1 0;-1 0;0 1;0 -1];
b = [2;-1;2;2];
x = [1.5;0]
 
X = glpk(f,A,B,[-inf;-inf],[],"UUUU","CC",1)
 
t = 1;
mu = 1.1;
epsilon = 0.01;
m = size(A,1);
Gphi = A'*(1./(b-A*x));
Hphi = A'*diag((1./(b-A*x))).^2*A;
while m/t>epsilon
while (t*f+Gphi)'*Hphi*(t*f+Gphi)>epsilon
IX = -inv(Hphi)*(t*f+Gphi);
x = x+0.1*IX;
Gphi = A'*(1./(b-A*x));
Hphi = A'*(diag((1./(b-A*x))).^2)*A;
end
t = t*mu;
end
x
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder