Вы находитесь на странице: 1из 3

PROGRAMACION DE SEMESTRE 2

!VARIABLES:
Xij: empresa "i" que se asigna a la obra de reparacin "j";
!FUNCIN OBJETIVO;

Min =
10000*WA1+9000*WA2+10000*WA3+12000*WB1+14000*WB2+20000*WB3+18000*WC1+15000*WC2+
35000*WC3+15000*WD1+13000*WD2+17000*WD3+18000*WE1+16000*WE2+21000*WE3;

A=
10000*WA1+9000*WA2+10000*WA3+12000*WB1+14000*WB2+20000*WB3+18000*WC1+15000*WC2+
35000*WC3+15000*WD1+13000*WD2+17000*WD3+18000*WE1+16000*WE2+21000*WE3;

A<=82545.75;

!RESTRICCCIONES DE ASIGNACION;

WA1+WA2+WA3<=1;
WB1+WB2+WB3<=1;
WC1+WC2+WC3<=1;
WD1+WD2+WD3<=1;
WE1+WE2+WE3<=1;

WA1+WB1+WC1+WD1+WE1=1;
WA2+WB2+WC2+WD2+WE2=1;
WA3+WB3+WC3+WD3+WE3=1;

WA1>=O;
WA2>=0;
WA3>=0;
WB1>=0;
WB2>=0;
WB3>=0;
WC1>=0;
WC2>=0;
WC3>=0;
WD1>=0;
WD2>=0;
WD3>=0;
WE1>=0;
WE2>=0;
WE3>=0;

@gin(WA1);
@gin(WA2);
@gin(WA3);
@gin(WB1);
@gin(WB2);
@gin(WB3);
@gin(WC1);
@gin(WC2);
@gin(WC3);
@gin(WD1);
@gin(WD2);
@gin(WD3);
@gin(WE1);
@gin(WE2);
@gin(WE3);

CORRIDA DE PROGRAMACION

Global optimal solution found.


Objective value: 35000.00
Objective bound: 35000.00
Infeasibilities: 0.000000
Extended solver steps: 0
Total solver iterations: 0
Elapsed runtime seconds: 0.04

Model Class: MILP

Total variables: 17
Nonlinear variables: 0
Integer variables: 15

Total constraints: 26
Nonlinear constraints: 0

Total nonzeros: 78
Nonlinear nonzeros: 0

Variable Value Reduced Cost


WA1 0.000000 10000.00
WA2 0.000000 9000.000
WA3 1.000000 10000.00
WB1 1.000000 12000.00
WB2 0.000000 14000.00
WB3 0.000000 20000.00
WC1 0.000000 18000.00
WC2 0.000000 15000.00
WC3 0.000000 35000.00
WD1 0.000000 15000.00
WD2 1.000000 13000.00
WD3 0.000000 17000.00
WE1 0.000000 18000.00
WE2 0.000000 16000.00
WE3 0.000000 21000.00
A 35000.00 0.000000
O 0.000000 0.000000

Row Slack or Surplus Dual Price


1 35000.00 -1.000000
2 0.000000 0.000000
3 47545.75 0.000000
4 0.000000 0.000000
5 0.000000 0.000000
6 1.000000 0.000000
7 0.000000 0.000000
8 1.000000 0.000000
9 0.000000 0.000000
10 0.000000 0.000000
11 0.000000 0.000000
12 0.000000 0.000000
13 0.000000 0.000000
14 1.000000 0.000000
15 1.000000 0.000000
16 0.000000 0.000000
17 0.000000 0.000000
18 0.000000 0.000000
19 0.000000 0.000000
20 0.000000 0.000000
21 0.000000 0.000000
22 1.000000 0.000000
23 0.000000 0.000000
24 0.000000 0.000000
25 0.000000 0.000000
26 0.000000 0.000000