Kim Lai wrote: > > > I tried lib(ic). maxlist can help me get a maximum. > But I don't know how to model a linear programming in IC. > I always gets a integer solution or Errors like > "out of range in get_domain_size(A1{0.0 .. 10.5}, _605)". > but I didn't call the get_domain_size !. > I get a different error running the example code you included. However, the problem is almost certainly because you are using ic's search/6 predicate with real intervals. As the document states, search/6 should be used with finite domain variables only -- the specific error you show is almost certainly because the code in search/6 is expecting your real interval variables to be finite domain. It probably should catch such errors in a more informative way. Cheers, KishReceived on Wed Apr 23 2008 - 10:13:29 CEST
This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:20 CEST