Piecewise Non-Linear Function

Problems with syntax of GAMS
Post Reply
Hendrik Mahlkow
User
User
Posts: 3
Joined: 1 month ago

Piecewise Non-Linear Function

Post by Hendrik Mahlkow » 1 month ago

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: 13
Joined: 1 year ago

Re: Piecewise Non-Linear Function

Post by Lutz » 1 month ago

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