Max operator in MINLP

Problems with syntax of GAMS
Post Reply
priyanka_shinde
User
User
Posts: 5
Joined: 3 months ago

Max operator in MINLP

Post by priyanka_shinde » 1 month 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

Hefeng Zhai
User
User
Posts: 6
Joined: 4 months ago

Re: Max operator in MINLP

Post by Hefeng Zhai » 1 month ago

priyanka_shinde wrote:
1 month 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,
Mr. Hefeng Zhai
School of Electrical Engineering, Shandong University, 17923 Jingshi Road, Jinan P.r.China 250061

Post Reply