[SCIP] ZIMPL : unexpected varsym

Felipe Serrano fserranom5 at gmail.com
Mon Nov 23 22:51:39 CET 2015


The last problem is solved. The issue was that Monia was using an older
version of ZIMPL.

Best
Felipe

On Mon, Nov 23, 2015 at 7:11 AM, monia hamdi <monia.hamdi at yahoo.fr> wrote:

> Thank you for your answer but still not working (the same problem)
>
> ------------------------------
> * From: * Felipe Serrano <fserranom5 at gmail.com>;
> * To: * monia hamdi <monia.hamdi at yahoo.fr>;
> * Cc: * scip at zib.de <scip at zib.de>;
> * Subject: * Re: [SCIP] ZIMPL : unexpected varsym
> * Sent: * Mon, Nov 23, 2015 2:18:35 AM
>
> 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/20151123/dfcf23e6/attachment.html>


More information about the Scip mailing list