I need your help in the following optimisation problem. I have a maximisation Mixed Integer linear programming problem. I would like to consider the minimum & maximum fixed fee.
I've done it in this way..
cost = max(minimum fixed cost , cost rate * x)
cost >= minimum fixed cost
cost >= cost rate * x
cost = min(maximum fixed cost , cost rate * x)
cost <= maximum fixed cost
cost <= cost rate * x
But, This turns infeasible solution. Would you please help me in optimising such a problem.
piecewise linear functions
I think what you mean is the following:
Let
Then you want to model the piecewise linear function:
Using piecewise linear functions inside a MIP model is not a problem. You can do this by different approaches:
Example formulation
A formulation with SOS2 variables can look as follows:
Introduce data points px and py
where we assume
0<=x<=C. I.e. C is an upper bound onx.Then do:
See e.g. (2)
What is wrong with your approach
Note that your approach (shown in the question) is incorrect:
is really
which limits
xtoA <= x <= B.References
(1) H.Paul Williams, "Model Building in Mathematical Programming", Wiley
(2) GAMS: Piecewise linear functions with SOS2 variables