multiply many variables

Help
bhos_ly
2012-10-05
2013-05-30
  • bhos_ly

    bhos_ly - 2012-10-05

    Hi,
    how can I multiply together many variables in JaCoP?
    Thanks

     
  • Radoslaw Szymanek

    Hi,

    It is a suspicious that your CP model requires to multiply *many* variables.

    You have not specified the multiplication you are looking for.

    if you look for x1*x2*…*xn=result then you could use XmulYeqZ (n-1 of them to be precise) and n-2 auxilary variables to store partial results of the multiplication.

    best,
    Radek

     
  • bhos_ly

    bhos_ly - 2012-10-11

    Thank you Radek for your reply.
    I was looking for something more powerfull.

    But thanks again!

    Elly

     

Log in to post a comment.