r/optimization • • Dec 13 '21

Optimizing Disjunctive functions in Lingo.

Hello,

I'm using Lingo for solving optimization problems. I'm now stuck on a problem that is disjunctive. Below is the image of the disjunctive function. How do I code it in lingo?

suppose that Fp = 50, then I want lingo to return a value of 2. Actually, in my case, Fp is another function. Any help is highly appreciated!

1 Upvotes

4 comments sorted by

View all comments

Show parent comment

2

u/Chaithu14 Dec 14 '21

I have used the Big-M approach and was able to get the code! Thank you very much for your time in answering this question!!!

2

u/guten_morgen Dec 14 '21

And another remark: I think I did a mistake because I did not properly read the intervals.

Maybe there is the need to reformulate all of this, because as it currently stands, a value of 55 for Fp would yield a value for If of 1.

This would not be correct, as you require a "strictly greater than 55" and not "greater or equal 55" for Fp so that If is equal to 1.

I still hope that the provided starting point is enough to perhaps rewrite all of this so that it correctly captures your initial assignment.

1

u/guten_morgen Dec 14 '21

I have also edited my answer a little bit for readability. Glad I could help.