[SCIP] ZIMPL : unexpected varsym
Felipe Serrano
fserranom5 at gmail.com
Mon Nov 23 03:18:35 CET 2015
Hi Monia
It seems that zimpl still doesn't allow to write variables in the
denominator, so if you instead use:
P[i] >= lambda * (C + sum <j> in T with j!=i do P[j] * C);
it is fine
(assuming that (C + sum <j> in T with j!=i do P[j] * C) is always >= 0)
If not, you can try using something like
aux_var[i] * (C + sum <j> in T with j!=i do P[j] * C) = 1
P[i] * aux_var[i] >= lambda
Best
Felipe
On Sun, Nov 22, 2015 at 7:20 PM, monia hamdi <monia.hamdi at yahoo.fr> wrote:
> Dear,
>
> I get syntax error : unexpected varsym (in P[j])
>
> set T:={1 .. 9};
> param C : 5;
> var P[T] real ;
>
> var lambda real;
>
> maximize cost: lambda;
>
> subto minP:
> forall <i> in T :
> P[i] / (C + sum <j> in T with j!=i do *P[j]* * C) >= lambda;
>
>
> Thank you
> Monia
>
>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> http://listserv.zib.de/mailman/listinfo/scip
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20151122/55ca2c43/attachment.html>
More information about the Scip
mailing list