I am trying to solve an optimization problem where the constraint contains absolute values and I am not sure how I can express this in a 'Pyomo-friendly' way.
Consider the following optimization problem:
$$\max_{b_{n}} \sum_{n} \space a_{n}(b_{n} - c_{n})$$
subject to $a_{n} > 0$ and $b_{n} = \begin{cases} c_{n}, & |b_{n} - c_{n}|\leq \epsilon \\ b_{n}, & |b_{n} - c_{n}| > \epsilon \end{cases}$.
As this is not a linear constraint, my guess is that this is not solvable. I also found this question where it is mentioned that there are some modelling tricks.