~ubuntu-branches/ubuntu/natty/coinor-cbc/natty

« back to all changes in this revision

Viewing changes to Data/Sample/exmip1.mps

  • Committer: Bazaar Package Importer
  • Author(s): Soeren Sonnenburg
  • Date: 2009-08-26 16:57:29 UTC
  • Revision ID: james.westby@ubuntu.com-20090826165729-ybrezxdybg0hd1u6
Tags: upstream-2.3.0
ImportĀ upstreamĀ versionĀ 2.3.0

Show diffs side-by-side

added added

removed removed

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