Page 2 of 2

Re: how to model abs(variable) linearly

Posted: Tue Aug 15, 2017 10:57 pm
by Gideon Kruseman
Yanzhiping,

Thet way I initially formulated the response to your question is that you have some sort of variable Q that can be either positive or negative. I assumed you wanted to have the absolute value of Q.

If this is not the case I misunderstood your question. If thgis is the case, the code I provided is the correct way to model this problem.

best,

Gideon

Re: how to model abs(variable) linearly

Posted: Tue Oct 10, 2017 5:31 pm
by phallyka
but in this way the abs() will make the problem non-linear.



เย็ดสาว

Re: how to model abs(variable) linearly

Posted: Wed Oct 11, 2017 9:50 am
by Gideon Kruseman
Hi Phallylka,
That's why you use the Steve and I described, so your system remains linear.
Best, Gideon