Add in a colon
s.t. c{i in I}: obj >= ta[i];
From: help-glpk-bounces+address@hidden [mailto:help-glpk-bounces+address@hidden
On Behalf Of Abhishek R Varma
Sent: Thursday, April 11, 2013 7:28 PM
To: address@hidden
Subject: [Help-glpk] Help
Hi,
sum{i in I} ta[i]
is a linear function of ta[i].
max{i in I} ta[i]
is not a linear function of w[i]
This is what I read on one of your reply. You also provided a solution for this
var ta{i in I}; var obj; minimize err: obj; s.t. c{i in I} obj >= ta[i];
I tried doing this but it gives me an error saying that delay.mod:18: ta must be subscripted
This e-mail and any attachments may be confidential or legally privileged. If you received this message in error or are not the intended recipient, you should destroy the e-mail message and any attachments or copies,
and you are prohibited from retaining, distributing, disclosing or using any information contained herein. Please inform us of the erroneous delivery by return e-mail. Thank you for your cooperation.
|