Sergey Dymchenko wrote: > Hi! > > I've found that exponentiation (^) from ic library will not work with > integer constraints even if both values in a exponentiation expression > are integers. > > For example, this will not find any possibilities: > > N #> 0, > B #> 0, > 10^B #> N, > > you have to write > > N #> 0, > B #> 0, > 10^B $> N, > > Is this a bug? Is this documented? Yes, it's a bug (the constraint gets rewritten with an auxiliary variable, onto which integrality is incorrectly imposed). Your alternative formulation has the semantics you intended (as B and N are already known to be integral at this point). Cheers, JoachimReceived on Sun Sep 18 2011 - 23:36:03 CEST
This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:20 CEST