Re: Constructing a PWL for Maximization Problem

Thank you for the response!

 

As you said:

 

You are allowed to write

constraint_1 :(P+N >= 0) => (Switch == 0);
constraint_2 :!(P+N >= 0) => (Switch == -N); //(negation constraint)

I am actually using these constraints just like I mentioned in my post, however, it does not yield the results I require (penalizing positives in all scenarios). 

Any help with this would be appreciated.

 

 

Thanks in advance!

 

Source: Re: Constructing a PWL for Maximization Problem