Está en la página 1de 6

Modelo LINGO:

Sets:
Prod/A B C/ : Utilidad, X ;
Activ/Mezcla Coccion Empaque/ : Dispo ;
PxA(Prod,Activ) : Req ;
End sets
Data:
Utilidad = 3 4 0 ;
Dispo = 5000 5500 4500 ;
Req = 0.1 0.2 0.1 0.2 0.4 0.1 0.4 0.2 0.1 ;
End data
Max = @Sum(Prod(i): Utilidad*X) + U ;
@For(Activ(j): @Sum(Prod(i): Req(i,j)*X(i))<=Dispo(j));
X(3) = a1 + a2 + a3 ;
U = 5.8*a1 + 5.3*a2 + 5*a3 ;
a1 <= 1000 ;
a2 <= 2000 ;
a3 <= 9999 ;
End

Reporte LINGO:

Global optimal solution found.


Objective value: 98900.00

Variable Value Reduced Cost


U 38900.00 0.000000
A1 1000.000 0.000000
A2 2000.000 0.000000
A3 4500.000 0.000000
X( A) 20000.00 0.000000
X( B) 0.000000 2.000000
X( C) 7500.000 0.000000

Informe administrativo:
Utilidad óptima: $ 98 900
Plan óptimo de producción
Se debe producir 20000 kg de A y 7500 kg de C

¿La Utilidad de C ha sido calculada correctamente por LINGO? Veamos:


Según LINGO, El Valor de X3 = X(C) = 7500 kg ; por lo tanto, La utilidad de C debería calcularse así:
U = 5.8*1000 + 5.3*2000 + 5*(7500-3000) = $38 900.
LINGO reporta U = 38900 ; por lo tanto está bien calculada la utilidad de C.
Modelo LINGO:

Sets:
Prod/A B C/ : Utilidad, X ;
Activ/Mezcla Coccion Empaque/ : Dispo ;
PxA(Prod,Activ) : Req ;
End sets
Data:
Utilidad = 3 4 0 ;
Dispo = 5000 5500 4500 ;
Req = 0.1 0.2 0.1 0.2 0.4 0.1 0.4 0.2 0.1 ;
End data
Max = @Sum(Prod(i): Utilidad*X) + U ;
@For(Activ(j): @Sum(Prod(i): Req(i,j)*X(i))<=Dispo(j));
X(3) = a1 + a2 + a3 + 0*w1 + 1000*w2 + 3000*w3 ;
U = 5*a1 + 5.3*a2 + 5.8*a3 + 0*w1 + 5000*w2 + 15600*w3 ;
w1 + w2 + w3 = 1 ;
a1 <= 1000*w1 ;
a2 <= 2000*w2 ;
a3 <= 9999*w3 ;
@Bin(w1) ; @Bin(w2) ; @Bin(w3) ;
End
Reporte LINGO:

Objective value: 101700.0

Variable Value Reduced Cost


U 41700.00 0.000000
A1 0.000000 0.8000000
A2 0.000000 0.5000000
A3 4500.000 0.000000
W1 0.000000 0.000000
W2 0.000000 800.0000
W3 1.000000 1800.000
X( A) 20000.00 0.000000
X( B) 0.000000 2.000000
X( C) 7500.000 0.000000

Informe administrativo:
Utilidad óptima: $ 101 700
Plan óptimo de producción
Se debe producir 20000 kg de A y 7500 kg de C

¿La Utilidad de C ha sido calculada correctamente por LINGO? Veamos:


Según LINGO, El Valor de X3 = X(C) = 7500 kg ; por lo tanto, La utilidad de C debería calcularse así:
U = 5*1000 + 5.3*2000 + 5.8*(7500-3000) = $41 700. La utilidad de C está bien calculada.

Modelo LINGO
Sets:
Prod/A B C/ : Utilidad, X ;
Activ/Mezcla Coccion Empaque/ : Dispo ;
PxA(Prod,Activ) : Req ;
End sets
Data:
Utilidad = 3 4 0 ;
Dispo = 5000 5500 4500 ;
Req = 0.1 0.2 0.1 0.2 0.4 0.1 0.4 0.2 0.1 ;
End data
Max = @Sum(Prod(i): Utilidad*X) + U ;
@For(Activ(j): @Sum(Prod(i): Req(i,j)*X(i))<=Dispo(j));
X(3) = a1 + a2 + a3 + 0*w1 + 1000*w2 + 3000*w3 ;
U = 5*a1 + 5.3*a2 + 5.8*a3 + 0*w1 + 5300*w2 + 17400*w3 ;
w1 + w2 + w3 = 1 ;
a1 <= 1000*w1 ;
a2 <= 2000*w2 ;
a3 <= 9999*w3 ;
@Bin(w1) ; @Bin(w2) ; @Bin(w3) ;
End

Reporte LINGO:

Global optimal solution found.


Objective value: 103500.0
Variable Value Reduced Cost
U 43500.00 0.000000
A1 0.000000 0.8000000
A2 0.000000 0.5000000
A3 4500.000 0.000000
W1 0.000000 0.000000
W2 0.000000 500.0000
W3 1.000000 0.000000
X( A) 20000.00 0.000000
X( B) 0.000000 2.000000
X( C) 7500.000 0.000000
Informe administrative:

Utilidad óptima: $ 103 500


Plan óptimo de producción
Se debe producir 20000 kg de A y 7500 kg de C

También podría gustarte