summaryrefslogtreecommitdiff
path: root/demos/exmip1.mps
blob: 4f73ac5114772f44243e73e6580c8947210b914d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
************************************************************************        
*                                                                               
*  The data in this file represents the following problem:                      
*                                                                               
*  Minimize or maximize Z = x1 + 2x5 - x8                                       
*                                                                               
*  Subject to:                                                                  
*                                                                               
*  2.5 <=   3x1 +  x2         -  2x4 - x5               -    x8                 
*                 2x2 + 1.1x3                                   <=  2.1         
*                          x3              +  x6                 =  4.0         
*  1.8 <=                      2.8x4             -1.2x7         <=  5.0         
*  3.0 <= 5.6x1                      + x5               + 1.9x8 <= 15.0         
*                                                                               
*  where:                                                                       
*                                                                               
*  2.5 <= x1                                                                    
*    0 <= x2 <= 4.1                                                             
*    0 <= x3                                                                    
*    0 <= x4                                                                    
*  0.5 <= x5 <= 4.0                                                             
*    0 <= x6                                                                    
*    0 <= x7                                                                    
*    0 <= x8 <= 4.3                                                             
*                                                                               
*  x3, x4 are 0,1 variables.                                                    
*                                                                               
************************************************************************        
NAME          EXAMPLE                                                           
ROWS                                                                            
 N  OBJ                                                                         
 G  ROW01                                                                       
 L  ROW02                                                                       
 E  ROW03                                                                       
 G  ROW04                                                                       
 L  ROW05                                                                       
COLUMNS                                                                         
    COL01     OBJ                1.0                                            
    COL01     ROW01              3.0   ROW05              5.6                   
    COL02     ROW01              1.0   ROW02              2.0                   
*                                                                               
*  Mark COL03 and COL04 as integer variables.                                   
*                                                                               
    INT1      'MARKER'                 'INTORG'                                 
    COL03     ROW02              1.1   ROW03              1.0                   
    COL04     ROW01             -2.0   ROW04              2.8                   
    INT1END   'MARKER'                 'INTEND'                                 
*                                                                               
    COL05     OBJ                2.0                                            
    COL05     ROW01             -1.0   ROW05              1.0                   
    COL06     ROW03              1.0                                            
    COL07     ROW04             -1.2                                            
    COL08     OBJ               -1.0                                            
    COL08     ROW01             -1.0   ROW05              1.9                   
RHS                                                                             
    RHS1      ROW01              2.5                                            
    RHS1      ROW02              2.1                                            
    RHS1      ROW03              4.0                                            
    RHS1      ROW04              1.8                                            
    RHS1      ROW05             15.0                                            
RANGES                                                                          
    RNG1      ROW04              3.2                                            
    RNG1      ROW05             12.0                                            
BOUNDS                                                                          
 LO BND1      COL01              2.5                                            
 UP BND1      COL02              4.1                                            
 LO BND1      COL05              0.5                                            
 UP BND1      COL05              4.0                                            
 UP BND1      COL08              4.3                                            
ENDATA