[gecode-users] Setting search stop option from minimize script

Guido Tack tack at gecode.org
Tue Apr 20 20:08:46 CEST 2010


Hi David,

the stop object can only be registered through the search options, see section 9.4 in "Modeling and Programming with Gecode".

Cheers,
	Guido

Zaremby, David wrote:

> Community,
>  
> I am looking for a hook in the minimize script setup where I can set my custom stop function that triggers off of user input. Is there a way to set the search option for a custom stop function when using  a minimize script? The only way I see to set search options is with the definition below but that seems to be the incorrect function because it assumes a string value. If there is no way to do it via a script I suppose I will need to replace my script with an engine that defines the compare function for the cost. If anyone has an example that might be useful.
>  
>  
> void 
> search (int v, const char *o, const char *h=NULL)
>  
> Add search option value for value v, string o, and help h.
>  
> Thanks,
>  
> David Zaremby
> Senior Software Engineer
> LSS / Strategic Products
>  
> Lockheed Martin Simulation, Training & Support
> 12506 Lake Underhill Road, MP-823
> Orlando, FL 32825
> _______________________________________________
> Gecode users mailing list
> users at gecode.org
> https://www.gecode.org/mailman/listinfo/gecode-users

-- 
Guido Tack, http://people.cs.kuleuven.be/~guido.tack/




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20100420/2fddd57b/attachment-0001.htm>


More information about the users mailing list