Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Model Pa
Model Pa
#VARIABLES DE DECISION
var
var
var
var
var
var
var
var
var
#Cantidad a producir
#Cantidad a subcontratar
#Cantidad inventario final
#Numero de personas a contratar
#Numero de personas a despedir
#Numero de empleados
#Horas extra
#Tiempo regular
#Ventas perdidas
#FUNCION OBJETIVO
minimize costo_total: sum {t in tiempo} (infla[t]*x[t]*cx + infla[t]*y[t]*cy + h
[t]*ch + f[t]*cf + w[t]*cw + invf[t]*cm + venper[t]*co + hte[t]*che);
#RESTRICCIONES
subject to r1 {t in tiempo}: invf [t] <= invfmax;
#Inventario final dependiendo de la capacidad maxima de la bodega
subject to r2 {t in tiempo}: x[t]*tr = htr [t] + hte[t];
#Tiempo de produccion
subject to r3 {t in tiempo}: htr[t] = w[t]*captr;
#Horas regulares y capacidad contratada
subject to r4 {t in tiempo}: hte[t] = w[t]*capte;
#Horas extras y capacidad contratada
subject to r5 {t in tiempo}: y[t] <= ymax[t];
#Capacidad maxima de subcontratacion
subject to r6 {t in tiempo:t=1}: invf[1] = venper[1] + invini + x[1] + y[1] - d[
1];
#Inventario final para el periodo 1 y ventas perdidas
subject to r7 {t in tiempo:t>1}: invf[t] = venper[t] + invf[t-1] + x[t] + y[t] d[t];
#Inventario final para el periodo t y ventas perdidas
subject to r8 {t in tiempo:t=1}: w[1] = work + h[1] - f[1];
#Trabajadores en el periodo 1