Originally posted by: Brummel
Hello Norbert,
thanks for your response. I digged a little deeper and apparently it is not the brackets that causes me problems.
What I try to do is to implement stepwise linear cost. However, I do not want to use the piecewise function since it does not really suit my needs. The piecewise function should depend partly on a constant and partly on a decision variable (production quantity from the previous period).
Indizes are the following:
i = plants
m = products
t = periods
forall ( i in Plants, m in Products, t in Periods )
ctPiecewiseUP:
productionUP[i][m][t] / ( KA[i] + production[i][m]
t-1 * SA[i] ) - TOL[i] <= piecewiseUP[i][m][t];
Decision variables are the following:
productionUP = variable that shows the amount of added production quantity from t-1 to t
production
t-1 = production quantity in the previous period
piecewiseUP = positive integer variable which shows the number of piecewise units if production quantity has been raised
Data-elements are the following:
SA = percentage
KA = constant
TOL = tolerance parameter
I guess the error occurs since I cannot divide a decision variable by a decision variable. Is that right?
Can I somehow solve this problem another way or is this doable at all in OPL respectively?
Many thanks in advance,
Sven
#DecisionOptimization#OPLusingCPLEXOptimizer