Page 1 of 1

Piecewise Non-Linear Function

Posted: Fri Dec 01, 2017 11:56 am
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...

Re: Piecewise Non-Linear Function

Posted: Fri Dec 01, 2017 2:25 pm
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