Piecewise Non-Linear Function

Problems with syntax of GAMS
Post Reply
Hendrik Mahlkow
User
User
Posts: 3
Joined: 6 years ago

Piecewise Non-Linear Function

Post by Hendrik Mahlkow »

Hello,

Is there a way a way to work with piecewise non-linear functions in NLP or DNLP?

if x < x_max then: y(x) = a * x ^ c
if x > x_max then: y(x) = b * x ^ d

I have no idea how the syntax should look like...
Lutz
User
User
Posts: 59
Joined: 7 years ago

Re: Piecewise Non-Linear Function

Post by Lutz »

Hi,

Maybe this model from the GAMS Test Library gives you a good starting point:

https://www.gams.com/latest/testlib_ml/ ... lib01.html

Best,
Lutz
Post Reply