Page 1 of 1

Max operator in MINLP

Posted: Fri Mar 02, 2018 3:56 pm
by priyanka_shinde
I am trying to model MINLP formulation in which I need to use max operator to find the maximum between two values like max(a,b) so it should either give a or b depending on whichever is maximum. However, in my model a is a variable and b is constant value so can someone suggest me how to use max function so that I get the desired output. Right now I have just tried writing max(a,b) but that doesn't work.

Regards,
Priyanka

Re: Max operator in MINLP

Posted: Sat Mar 03, 2018 3:42 am
by Hefeng Zhai
priyanka_shinde wrote: 6 years ago I am trying to model MINLP formulation in which I need to use max operator to find the maximum between two values like max(a,b) so it should either give a or b depending on whichever is maximum. However, in my model a is a variable and b is constant value so can someone suggest me how to use max function so that I get the desired output. Right now I have just tried writing max(a,b) but that doesn't work.

Regards,
Priyanka
Hello Priyanka,
This may be useful for you:
https://math.stackexchange.com/question ... constraint

Best Regards,