[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] power of: calculate 2^x from variable x
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] power of: calculate 2^x from variable x |
Date: |
Wed, 08 Jun 2011 13:23:40 +0400 |
> # multiply the c-th cell of the temporary row with 2^c
> s.t. c4{r in R}: s[r] = sum{c in C} (2 ** c) * t[r,c];
>
If c is large (say, greater than 10), using this formulation
may cause numerical difficulties like in case of too "big M".
You might try to choose some other, more suitable parametrization
of the solution space.