### sum

Posted:

**Thu Jul 25, 2019 2:27 am**how to code constraint 15 in the attachment?

where x(i,t) is variable.

where x(i,t) is variable.

Page **1** of **1**

Posted: **Thu Jul 25, 2019 2:27 am**

how to code constraint 15 in the attachment?

where x(i,t) is variable.

where x(i,t) is variable.

Posted: **Thu Jul 25, 2019 7:15 am**

Hi

Once again use $-constraints to restrain the sum

If the set k has numbers as set elements (e.g. /1*10/) you can use k.val instead of ord.

Cheers

Renger

Once again use $-constraints to restrain the sum

Code: Select all

```
sum(k$(ord(k) > 1), 1/x(k)
```

Cheers

Renger