Re: how to model abs(variable) linearly
Posted: Tue Aug 15, 2017 10:57 pm
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
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