pregunta 1

Download Pregunta 1

If you can't read please download the document

Upload: felipe-andres-orellana

Post on 27-Jan-2016

212 views

Category:

Documents


0 download

DESCRIPTION

ampl

TRANSCRIPT

#DEFINO MIS VARIABLES Y SU NATURALEZA# xij : cantidad de litros de malta i (i=3,5,8,9) utilizados en la produccion de whiskey j (j=1,2,3)#donde 1=rojo , 2=azul, 3=negro#Malta tipo 3var x31 >= 0 ;var x32 >= 0 ;var x33 >= 0 ;#Malta tipo 5var x51 >= 0 ;var x52 >= 0 ;var x53 >= 0 ;#Malta tipo 8var x81 >= 0 ;var x82 >= 0 ;var x83 >= 0 ;#Malta tipo 9var x91 >= 0 ;var x92 >= 0 ;var x93 >= 0 ;#FUNCION OBJETIVOmaximize z: 8.0*(x31 + x51 + x81 + x91) + 6.5*(x32 + x52 + x82 + x92) + 6.0*(x33 + x53 + x83 + x93) - (6.5*(x31 + x32 + x33) + 6.0*(x51 +x52 + x53) + 5.25*(x81 + x82+ x83) + 4.5(x91 + x92 + x93));#RESTRICCIONES#Suministro de maltasubject to restriccion1 : x31 + x32 + x33