help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-glpk] help with code for particular constraint


From: Bogers, F.R.
Subject: [Help-glpk] help with code for particular constraint
Date: Mon, 27 Feb 2017 09:21:05 +0000

Hi everybody,

How do i code the constraint which i attached to this email in a picture?

I have troubles with coding the summations. I was thinking the following: 

subject to Three{i in B, j in V, k in K} : sum{e in V:e!=j} sum {g in K:g<k}  ((HT[i,e] * x[i,e,g]+y[i,e,g]) + y[i,j,k] – (A[j]-S[i])*x[i,j,k] >=0) ;

But i do not know how to index the e (or "not j").  If i apply these text, i get the following error: 

character â not allowed
Context: ...e ] * x [ i , e , g ] + y [ i , e , g ] ) + y [ i , j , k ] 
MathProg model processing error

Big thanks in advance!

With kind regards,
Frank Bogers

Attachment: Capture.PNG
Description: Capture.PNG


reply via email to

[Prev in Thread] Current Thread [Next in Thread]