help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] syntax problem ?


From: Andrew Makhorin
Subject: Re: [Help-glpk] syntax problem ?
Date: Sun, 27 Jan 2008 21:15:57 +0300

> there, is another way :
> subject to cont4{i in 1..n, j in 1..OFi[i]-1,k in 1..m, a in
> 1..BS-1-trmax} :
> p[i,j]*x[i,j+1,k,a] <= sum{kk in 1..m, aa in
> 1..a-1-tr[k,kk]}x[i,j,kk,aa];

> but in my case, p[i,j] can't be a parameter because it depend on k so I
> would like something like :

> subject to cont4{i in 1..n, j in 1..OFi[i]-1,k in 1..m, a in
> 1..BS-1-trmax} :
> zt[i,j]*x[i,j+1,k,a] <= 
> sum{kk in 1..m, aa in 1..a-1-tr[k,kk]}x[i,j,kk,aa];

> subject to cont41{i in 1..n, j in 1..OFi[i]} : 
zt[i,j]>>=sum{k in 1..m}z[i,j,k]*p[i,j,k];

> but multiplication of linear forms is not allowed... is it possible with
> an other way ?

This is because in mip all constraints must be linear.

Could you formulate your question more precisely?





reply via email to

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