Changeset 2185:e2bf51eab7f7 in lemon-0.x for lemon/mip_glpk.cc
- Timestamp:
- 08/30/06 18:08:03 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2906
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/mip_glpk.cc
r2149 r2185 70 70 } 71 71 } 72 72 73 74 LpGlpk::SolutionStatus MipGlpk::_getMipStatus(){ 75 76 //Meg kell nezni: ha az LP is infinite, akkor ez is, ha az is 77 //infeasible, akkor ez is, de ez lehet maskepp is infeasible. 78 int stat= lpx_mip_status(lp); 79 switch (stat) { 80 case LPX_I_UNDEF://Undefined (no solve has been run yet) 81 return UNDEFINED; 82 case LPX_I_NOFEAS://There is no feasible integral solution (primal, I guess) 83 return INFEASIBLE; 84 // case LPX_UNBND://Unbounded 85 // return INFINITE; 86 case LPX_I_FEAS://Feasible 87 return FEASIBLE; 88 case LPX_I_OPT://Feasible 89 return OPTIMAL; 90 default: 91 return UNDEFINED; //to avoid gcc warning 92 //FIXME error 93 } 94 } 95 73 96 MipGlpk::Value MipGlpk::_getPrimal(int i){ 74 97 return lpx_mip_col_val(lp,i);
Note: See TracChangeset
for help on using the changeset viewer.