[Dip] set time limit

Matthew Galati magh at lehigh.edu
Tue Oct 12 09:42:54 EDT 2010


>
> I want to set a time limit on my runs. In examples there is
>
>
> examples/MCF/MCF_Main.cpp:       algo->solveDirect(timeLimit);
>
>
> However when I try to compile this I get the error
>
> ../../../../Dip/examples/MCF/MCF_Main.cpp: In function ‘int main(int,
> char**)’:
> ../../../../Dip/examples/MCF/MCF_Main.cpp:84: error: invalid conversion
> from ‘int’ to ‘const DecompSolution*’
> ../../../../Dip/examples/MCF/MCF_Main.cpp:84: error:   initializing
> argument 1 of ‘virtual DecompSolverResult* DecompAlgo::solveDirect(const
> DecompSolution*)’
> make: *** [MCF_Main.o] Error 1
>
> How do I set a time limit?  Also is there anyway to get at
>


To control the time use the parameter

[DECOMP]
  LimitTime = xxx


That example looks old - I'll update it. Please file ticket to remind me.









>
>
> m_masterObjLast
>
> from inside, for example, solveRelaxed() in the DecompApp?
>
>
I'll explain in another email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/dip/attachments/20101012/a56c3a8d/attachment.html 


More information about the Dip mailing list