[Os-project-managers] Dip and OSResult
Kipp Martin
kmartin at chicagobooth.edu
Thu Sep 9 21:20:03 EDT 2010
Hi Guys:
>
> and then
>
> osresult->setPrimalVariableValuesDense(solIdx, x);
The more I think about it, the more I think calls such as
osresult->setPrimalVariableValuesDense(solIdx, x);
osresult->setGeneralStatusType("normal");
osresult->setTime(cpuTime);
should **delete** what is currently there and not **add** to what is there.
What is your opinion?
Thanks
>
> we keep ADDING to the solution each time when we call solve.
>
> I have just now modified the
>
> CoinSolver::solve()
>
> to have
>
>
> if(osresult != NULL) delete osresult;
> osresult = new OSResult();
>
> so each call to solve() results in a new OSResult object being created.
> This seems like the correct thing to do. Hopefully the creation of a new
> OSResult object with each call to solve will not be too expensive.
>
> Working with Dip is very enlightening for OS.
>
> Cheers
--
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