hi every body. i need to code bellow formula in Gams. but unfortunately, i don't know HOW!!it would be wonderful if anybody help me.... P= ∑ X(i)* D_i(X(i))

the problem is that Gams treats set elements as string and i have problem to access specific element of set is denoted by X(i). I really appreciate any kind of suggestion. Looking for your answers


asked 22 Jun '16, 23:00

somayye's gravatar image

accept rate: 0%

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 22 Jun '16, 23:00

Seen: 526 times

Last updated: 22 Jun '16, 23:00

OR-Exchange! Your site for questions, answers, and announcements about operations research.