[Os-project-managers] [Fwd: Re: Question about OSxLParserdata, OSInstance, OSOption]

Kipp Martin kmartin at chicagobooth.edu
Tue Dec 21 09:55:22 EST 2010


Whoops, forgot to respond to the list.

See below about m_mdVariableLowerBounds being private and not modified.



-------- Original Message --------
Subject: Re: [Os-project-managers] Question about OSxLParserdata, 
OSInstance, OSOption
Date: Tue, 21 Dec 2010 04:52:31 -1000
From: Kipp Martin <kmartin at chicagobooth.edu>
To: Horand Gassmann <Horand.Gassmann at dal.ca>
References: <4CE39BFD.4060609 at chicagobooth.edu> 
<20101121114422.19621qb0pra0pxms at wm1.dal.ca> 
<20101121153211.12992aqoz0folf40 at wm4.dal.ca> 
<4CE9C658.8000600 at chicagobooth.edu> 
<20101121224002.26954gkr3lg47hgk at wm1.dal.ca> 
<20101124155908.134519nj4zsz6g0k at wm3.dal.ca> 
<20101220214621.82713nvof28u01s0 at wm2.dal.ca> 
<4D105CE1.2090106 at chicagobooth.edu> 
<20101221075235.44746brk6b3ze98o at wm2.dal.ca>

Hi Gus:


> 
> Aha!!! Do you really trust the user to do this right? And at what  
> point do you get out of sync between instanceData->variables->var and  
> m_mdVariableLowerBounds? I think this is an accident waiting to happen.

m_mdVariableLowerBounds is private. It is NOT meant for the user to
overwrite. This is OSInstance NOT OSModification.

Cheers
> 
> Cheers
> 
> gus
> 
>> them. Working directly with pointers that have the information in  
>> memory is the most efficient way to do this.
>>
>> Jun -- anything to add?
>>
>> Cheers
>>
>>
>>> Only today do I realize (again) that there is quite a difference in  
>>>  the things that are being stored in OSInstance and OSOption.   
>>> OSInstance stores the entire instance into arrays and things and  
>>> then  duplicates everything into the OSInstance object. This seems  
>>> wasteful  to me, so I have in the OSoL parser been far more  
>>> conservative and  stored _nothing_ into m_mi... things. I store  
>>> stuff into  OSoLParserdata temporarily, and then copy them into the  
>>> OSOption  instance, upon which I will free the temporary storage in  
>>>  OSoLParserdata. OSResult and OSrLParserdata do things that way,  
>>> too,  and maybe that is where I picked up my habits.
>>>
>>> I hope I am respecting the constitution. (I have not found anything  
>>>  about it in the statutes, so I am not sure.)
>>>
>>> Cheers
>>>
>>> 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


-- 
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