[Os-project-managers] Ticket 14

Horand Gassmann Horand.Gassmann at Dal.Ca
Mon Apr 30 15:24:34 EDT 2012


"Hotmail (majxuh)" <majxuh at hotmail.com> wrote:

> For the category, I think suggest we have these: OSAgent
> Main and command line parser (Maybe call it OSExe, OSCommand, OSUI)

OK.

> OSParser (for any reader and writer)

This is definitely not fine enough for debug and trace. I may very  
well just want to look at the osol parser in detail and not be  
confused by output from the osil parser; same for osrl.

> OSInterface (for both model or solver or other interfaces.

Again, I can see trouble with the debug and trace levels. I am not  
overly worried about cross-contamination of different solver  
interfaces, since typically only one will be active for any problem,  
but I might want to look only at the ampl to OS interface in great  
deal without worrying about the handshake with Ipopt, for instance.

> OSCommon (OSGeneral, OSUtil etc.)

This is probably OK.

> OSServer (even though there is none yet in the C++ code)

Fine as well.

> For the severity level, here are my suggestions:
> fatal
> error
> warning
> info
> debug
> trace
>
> This set is pretty much adopted in all software.

Ipopt uses a good deal more than that. From IPJournalist.hpp:

   enum EJournalLevel {
     J_INSUPPRESSIBLE=-1,
     J_NONE=0,
     J_ERROR,
     J_STRONGWARNING,
     J_SUMMARY,
     J_WARNING,
     J_ITERSUMMARY,
     J_DETAILED,
     J_MOREDETAILED,
     J_VECTOR,
     J_MOREVECTOR,
     J_MATRIX,
     J_MOREMATRIX,
     J_ALL,
     J_LAST_LEVEL
   };

I am not saying we need to copy Andreas, I just want to make sure that  
the information is out there. Also, I would recommend that the debug  
level be hidden behind /ifdef`s for efficiency reasons.

Cheers

gus

> Jun
>
> --------------------------------------------------
> From: "Horand Gassmann" <Horand.Gassmann at DAL.CA>
> Sent: Saturday, April 28, 2012 3:38 PM
> To: "Kipp Martin" <kmartin at chicagobooth.edu>; "Jun Ma" <majxuh at hotmail.com>
> Cc: <Os-project-managers at list.coin-or.org>
> Subject: Ticket 14
>
>> Hi guys,
>>
>> I have started to sort the write statements a little. There are  
>> 2064  of them, and they seem to fall quite naturally into sevedral   
>> categories (based mostly on number of statements):
>>
>> OSAgent
>> Main and command line parser
>> OSInstance and OSiL parser (includes OSiL reader and writer)
>> OSOption and OSoL parser (includes OSrL reader and writer)
>> OSResult and OSrL parser (includes OSrL reader and writer)
>> OSGeneral
>> OSSolverInterfaces
>> OSModelInterfaces
>> OSUtils
>> Miscellaneous (empty at the moment)
>>
>> In terms of severity levels I am not so sure. CoinMessageHandler  
>> uses  basically these:
>>
>> insuppressible
>> fatal
>> warning
>> informational
>> logging
>> debug
>>
>> but Ipopt has a good deal more.
>>
>> I have put my list into a tab-delimited text file and would like to  
>>  upload that to the src directory (perhaps in a subfolder  
>> ticket14), at  least until we have ticket 14 resolved. Is that  
>> acceptable?
>>
>> Cheers
>>
>> gus
>>
>> -------------------------------------------------------
>>
>> Horand I. Gassmann, Professor
>>
>> School of Business Administration, Dalhousie University
>> 6100 University Avenue, PO Box 15000
>> Halifax, Nova Scotia, Canada, B3H 4R2
>> ph. (902) 494-1844
>> fax (902) 494-1107
>>
>> http://myweb.dal.ca/gassmann/
>>
>>
>
>



-------------------------------------------------------

Horand I. Gassmann, Professor

School of Business Administration, Dalhousie University
6100 University Avenue, PO Box 15000
Halifax, Nova Scotia, Canada, B3H 4R2
ph. (902) 494-1844
fax (902) 494-1107

http://myweb.dal.ca/gassmann/



More information about the Os-project-managers mailing list