or in param

9 views
Skip to first unread message

Milan Marinkovic

unread,
Aug 23, 2016, 12:59:24 PM8/23/16
to AMPL Modeling Language
Hello, can somebody help me. In my work I need to dimen param that are {i in I or p in P}, but when I put that in my code there is a sintax error. Please help me!

Victor Zverovich

unread,
Aug 23, 2016, 1:15:38 PM8/23/16
to am...@googlegroups.com
If you are trying to define a parameter with an indexing set which is a union of I and P then it can be done as follows:

  param p{i in I union P};

Otherwise, please elaborate on what you are trying to do.

HTH,
Victor

On Tue, Aug 23, 2016 at 9:59 AM Milan Marinkovic <milan.k...@gmail.com> wrote:
Hello, can somebody help me. In my work I need to dimen param that are {i in I or p in P}, but when I put that in my code there is a sintax error. Please help me!

--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages