Matrices problem can be solved by using these two commands: ‘for all’ and ‘sum’ in Mosel language like:
For all(j in NG) sum(l in NL) A(j,l)*pf(l)=(PG(j)+dpgplus(j)-dpgminus(j)-P_DEMAND(j))
There are lots of errors when I use only sum (l in NL) A(i.l)*pf(l) about unknown 'i' in AMPL.
Which chapter of AMPL book does focus on matrices? In which chapter can I find an example of matrices |

--~--~---------~--~----~------------~-------~--~----~

You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.

To post to this group, send email to

[hidden email] To unsubscribe from this group, send email to

[hidden email] For more options, visit this group at http://groups.google.com/group/ampl?hl=en

-~----------~----~----~----~------~----~------~--~---