Dear all

I've always thought that it's not common and of course normal to use an integral term in equalities and inequalities in our constraints in a model. So what should we do with this integrals in models like stochastic inventory models!? how can we implement this type of problems in GAMS. Can you give me some sample solution and codes?

I'll appreciate any kind of suggestion.

Thank you

asked 15 May '12, 06:42

Bob%20Pay's gravatar image

Bob Pay
accept rate: 0%

retagged 15 May '12, 14:24

Marco%20Luebbecke's gravatar image

Marco Luebbecke ♦

GAMS Support: How do I code a definite integral?

There is no intrinsic way to deal with integrals in GAMS. You need to discretize (or guess) if you want this as a function in a model. If you just want to calculate this in an a symbolic (or numeric) way, tools like MATLAB or Mathematica are better suited for this.


answered 15 May '12, 14:04

fbahr's gravatar image

fbahr ♦
accept rate: 13%

thank you for your answer.

(16 May '12, 04:26) Bob Pay
Your answer
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]( "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: 15 May '12, 06:42

Seen: 2,149 times

Last updated: 16 May '12, 04:47

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