help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Constraint!


From: Andrew Makhorin
Subject: Re: [Help-glpk] Constraint!
Date: Tue, 18 Dec 2007 15:12:46 +0300

> How I can write this constraint in MathProg/AMPL?,

> (Mathematical form)
> sum(j=1 to t) sum(i=1 to I) b_ik * x_ij <= sum(j=1 to t) s_kj,
> t = 1,2,...,J; k = 1,2,...,K).

s.t. foo{t in 1..J, k in 1..K}:
sum{j in 1..t, i in 1..I} b[i,k] * x[i,j] <= sum{j in 1..t} s[k,j];

> The problem is to change the index for the next constraint for to obtain
> the "joint constraints". I probe with "FOR", but this is not permitted
> for the constraint. 

What is "joint constraints" ?





reply via email to

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