Changeset 1438
- Timestamp:
- Jun 21, 2009 6:28:02 AM (10 years ago)
- Location:
- trunk/Bonmin/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Bonmin/src/CbcBonmin/BonCbc.cpp
r1423 r1438 591 591 } 592 592 if (model_.status() == 0) { 593 if(model_.isContinuousUnbounded()){ 594 status = TMINLP::CONTINUOUS_UNBOUNDED; 595 mipStatus_ = UnboundedOrInfeasible; 596 } 597 else 593 598 if (bestSolution_) { 594 599 status = TMINLP::SUCCESS; -
trunk/Bonmin/src/CbcBonmin/BonCbc.hpp
r1254 r1438 24 24 ProvenInfeasible /** Problem has been proven to be infeasible.*/, 25 25 Feasible /** An integer solution to the problem has been found.*/, 26 UnboundedOrInfeasible /*Coninuous relaxation is unbounded.*/, 26 27 NoSolutionKnown/** No feasible solution to the problem is known*/}; 27 28 /** Constructor.*/ -
trunk/Bonmin/src/Interfaces/Ampl/BonAmplTMINLP.cpp
r1408 r1438 113 113 ) 114 114 { 115 appName_ = appName; 115 116 options->GetEnumValue("file_solution",writeAmplSolFile_,"bonmin."); 116 117 jnlst_ = jnlst; … … 659 660 if (status == TMINLP::SUCCESS) { 660 661 status_str = "\t\"Finished\""; 661 message = "\n bonmin: Optimal";662 message = "\n" + appName_ +": Optimal"; 662 663 } 663 664 else if (status == TMINLP::INFEASIBLE) { 664 665 status_str = "\t\"Finished\""; 665 message = "\n bonmin: Infeasible problem";666 message = "\n" + appName_ + ": Infeasible problem"; 666 667 } 667 668 else if (status == TMINLP::LIMIT_EXCEEDED) { 668 669 status_str = "\t\"Not finished\""; 669 message = "\n Optimization interupted on limit.";670 message = "\n" + appName_ + ": Optimization interupted on limit."; 670 671 } 671 672 else if (status == TMINLP::MINLP_ERROR) { 672 673 status_str = "\t\"Aborted\""; 673 message = "\n Error encountered in optimization.";674 message = "\n" + appName_ + ": Error encountered in optimization."; 674 675 } 675 676 if (writeAmplSolFile_) { -
trunk/Bonmin/src/Interfaces/Ampl/BonAmplTMINLP.hpp
r1408 r1438 269 269 //@} 270 270 271 /** Name of application.*/ 272 std::string appName_; 273 271 274 /** Index of the objective to use for upper bounding*/ 272 275 int upperBoundingObj_; -
trunk/Bonmin/src/Interfaces/BonTMINLP.hpp
r1088 r1438 66 66 SUCCESS, 67 67 INFEASIBLE, 68 CONTINUOUS_UNBOUNDED, 68 69 LIMIT_EXCEEDED, 69 70 MINLP_ERROR};
Note: See TracChangeset
for help on using the changeset viewer.