[Osi-tickets] [COIN-OR Open Solver Interface] #89: OsiXprSolverInterface prints on stdout even if OsiDoReducePrint is and loglevel is set to zero in its messagehandler

COIN-OR Open Solver Interface coin-trac at coin-or.org
Wed May 12 06:57:43 EDT 2010


#89: OsiXprSolverInterface prints on stdout even if OsiDoReducePrint is and
loglevel is set to zero in its messagehandler
----------------------------+-----------------------------------------------
 Reporter:  chm.duquesne    |       Owner:  mjs    
     Type:  defect          |      Status:  new    
 Priority:  major           |   Milestone:         
Component:  Osi Base Class  |     Version:  0.100.2
 Keywords:                  |  
----------------------------+-----------------------------------------------
 see http://list.coin-or.org/pipermail/osi/2010-May/000360.html
 and http://list.coin-or.org/pipermail/osi/2010-April/000340.html

 Applying

 osi->setHintParam(OsiDoReducePrint);
 osi->messageHandler()->setLogLevel(0);

 I am able to deactivate output for most solvers, except Xpress.

 #------------------------------------
 #Stuff I want to get rid of:
 #------------------------------------

 Reading Problem _xprs_
 Problem Statistics
            0 (      0 spare) rows
            0 (      0 spare) structural columns
            0 (      0 spare) non-zero elements
 Global Statistics
            0 entities        0 sets        0 set members

 Reading Problem Prob1
 Problem Statistics
          600 (     50 spare) rows
          927 (      0 spare) structural columns
         2196 (    100 spare) non-zero elements
 Global Statistics
            0 entities        0 sets        0 set members
 Presolved problem has:    382 rows     676 cols    1676 non-zeros
 Crash basis containing 187 structural columns created

    Its         Obj Value      S   Ninf  Nneg        Sum Inf  Time
      0           .000000      D      1     0      42.000000     0
     58       49844.00000      D      0     0        .000000     0
 Uncrunching matrix
     58       49844.00000      D      0     0        .000000     0
 Optimal solution found
 Presolved problem has:    372 rows     666 cols    1637 non-zeros
 ?140 Warning: Basis lost - recovering

    Its         Obj Value      S   Ninf  Nneg        Sum Inf  Time
      0       30800.00000      D      6     0        .000000     0
      1       49844.00000      D      0     0        .000000     0
 Optimal solution found

 Starting root cutting & heuristics

  Its Type    BestSoln    BestBound   Sols    Add    Del     Gap     GInf
 Time
 +         49844.00000  49844.00000      1               .000000        0
 0
  *** Relative MIP gap less than MIPRELSTOP ***
  *** Search completed ***     Time:     0 Nodes:     1
 Number of integer feasible solutions found is 1
 Best integer solution found is  49844.00000
 Best bound is  49844.00000
 Uncrunching matrix
 decrementInstanceCounter:: numInstances 1

-- 
Ticket URL: <https://projects.coin-or.org/Osi/ticket/89>
COIN-OR Open Solver Interface <http://projects.coin-or.org/Osi>
An API for a variety of LP and MIP solvers (and more).



More information about the Osi-tickets mailing list