[Fwd: Need help in Fixing GUSEK Code]

Andrew Makhorin <[email protected]>
Newsgroups gmane.comp.gnu.glpk
Message-ID <[email protected]>
-------- Forwarded Message --------
From: sahani rathnasiri <[email protected]>
To: [email protected]
Subject: Need help in Fixing GUSEK Code
Date: Fri, 10 Apr 2020 19:08:39 +1000

> Hi All,
> 
> I am running code in GUSEK and I need to define three indexes. I am
> getting a syntax error. Please help me fix this.
> My constraint;
> subject to order_quantity_constraint_min {i in I, j in J, n in N: i
> <= t, j <> 2 and n <= r}: Z[i,j]* Qmin[i,n] <= a[i,n];
> 
> The result I receive in NEOS;
> 
> amplin, line 50 (offset 2865):
>         syntax error
> context:  subject to order_quantity_constraint_min {i in I, j in J, n
> in N: i <=  >>> t, <<<  j <> 2 and n <= r}: Z[i,j]* Qmin[i,n] <=
> a[i,n];
> Executing AMPL.
> 
> If anyone can help me, really appreciate your help in this regard.
> 
> Thank You,
> 
> Best Regards,
> 
> Sahani 
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.