Hi Enes,
the absolute value is a non-linear function. However, abs(x) is a piecewise-linear function and you can use a modeling technique.
Let x be your decision variable and z = abs(x). You can use two separate variables p, n >= 0 and use an indicator variable y to ensure that only p or n can have a value other than zero at any time.
1) Add variables p, n >= 0
2) Add binary variable y
3) Add constraint x = p - n.
4) Add constraints p <= M*y and n <= M * (1-y) with suitable values for M
5) Add constraint z = p + n
Then you have z = abs(x). Make sure that you set proper bounds for x in your model (i.e. allow negative values).
Kostja