[Os-project-managers] Interpretation question about OSoL

Kipp Martin kmartin at chicagobooth.edu
Mon Jan 3 17:16:46 EST 2011


Hi Jun:

> Did some technical research:
> The type xsd:double represents an IEEE double-precision 64-bit 
> floating-point number. The format of xsd:double values is a mantissa.
> an empty value is not valid, unless xsi:nil is used.

The above is interesting to know. Interesting terminology. I wonder why 
they use xsi:nil instead of xsi:nan. When someone uses the term "nil" in 
  English (e.g. "my chances of winning the lottery are nil") they mean 
something that is quite small which is different than nan.

Cheers
> 
> So, our parser should give error msg.
> Although, what's surprising is that my xml spy does  <obj idx="-2" 
> lbValue="">, though in my opinion, it should give a validation error too.
> 
> Jun
> 
> --------------------------------------------------
> From: "Kipp Martin" <kmartin at chicagobooth.edu>
> Sent: Friday, December 31, 2010 5:25 AM
> To: "Horand Gassmann" <Horand.Gassmann at dal.ca>
> Cc: <Os-project-managers at list.coin-or.org>
> Subject: Re: [Os-project-managers] Interpretation question about OSoL
> 
>> Hi Gus:
>>>
>>> I am working through the fine points of the parser implementation and
>>> have a question about interpretation.
>>>
>>> What should happen in each of the following two cases?
>>>
>>> <initialObjectiveBounds numberOfObj="2">
>>>      <obj idx="-1">
>>>      <obj idx="-2" lbValue="">
>>> </initialObjectiveBounds>
>>>
>>> I think in the first case the lower bound should be -INF (the default
>>> value), but I am not sure about the second. Should it be flagged as an
>>> error? Or should it be OSNAN?
>>
>> I think an error. I think with high probability, that if there is an
>> lbValue="", then the user actually MEANT for a value to be there and
>> should be made aware of the fact (by an error) that it is empty.
>>
>> Cheers
>>
>>
>>>
>>> The reason why I am asking is that I have gotten into the habit of
>>> parsing attributes that occur more than once using a common code, and
>>> there are other occasions when lbValue is returned as a string, not a
>>> double as is the case here. As a result, I would have to recognize
>>> this case separately.
>>>
>>> Any opinions?
>>>
>>> Thanks
>>>
>>> gus
>>>
>>> _______________________________________________
>>> Os-project-managers mailing list
>>> Os-project-managers at list.coin-or.org
>>> http://list.coin-or.org/mailman/listinfo/os-project-managers
>>
>>
>> -- 
>> Kipp Martin
>> Professor of Operations Research
>> and Computing Technology
>> Booth School of Business
>> University of Chicago
>> 5807 South Woodlawn Avenue
>> Chicago, IL 60637
>> 773-702-7456
>> kmartin at chicagobooth.edu
>> http://www.chicagobooth.edu/faculty/bio.aspx?person_id=12825325568
>> http://projects.coin-or.org/OS
>>
>> _______________________________________________
>> Os-project-managers mailing list
>> Os-project-managers at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/os-project-managers
>>


-- 
Kipp Martin
Professor of Operations Research
and Computing Technology
Booth School of Business
University of Chicago
5807 South Woodlawn Avenue
Chicago, IL 60637
773-702-7456
kmartin at chicagobooth.edu
http://www.chicagobooth.edu/faculty/bio.aspx?person_id=12825325568
http://projects.coin-or.org/OS



More information about the Os-project-managers mailing list