Hi all,

I am new to AIMMS and I was wondering if someone could help me with my model.

I would like to maximize profit, fulfill as much demand as possible + keeping a safety stock. Besides reorder quantity is restricted by a maximum order quantity (see Sets, Parameters, Variables and Constraints attached).

I linearized min(Demand, E).

E = demand fulfilled

However, when I introduce the maximum order quantity constraints the model becomes infeasible.

Besides, the listing file results in the following messages:

CPLEX 12.10 constructed the following irreducible infeasibility set (IIS).

The IIS consists of 3 constraints and 4 variables.

Stock_definition(B,NL19,p-1) .. [ 9 | 31 | IIS ]

- 1 * X(B,NL19,p-1) + 1 * Stock(B,NL19,p-1) = -120320 ; (lhs=0) ****

Stock_definition(B,NL33,p-1) .. [ 9 | 43 | IIS ]

- 1 * X(B,NL33,p-1) + 1 * Stock(B,NL33,p-1) = -428130 ; (lhs=0) ****

OQ_B(p-1) .. [ 9 | 152 | IIS ]

+ 1 * X(B,GB13,p-1) + 1 * X(B,NL19,p-1) + 1 * X(B,NL30,p-1) + 1 * X(B,NL33,p-1) <= 500000 ; (lhs=0)

The variables in the IIS are:

name lower level upper

X(B,GB13,p-1) 0 0 inf

X(B,NL30,p-1) 0 0 inf

Stock(B,NL19,p-1) 0 0 inf

Stock(B,NL33,p-1) 0 0 inf

Can someone explain me what to do?

Many thanks in advance!

Kind regards,

Claire

**Best answer by Marcel Hunting**

Hi

It could be that you are loading a case and that the case contains information that freezes the E variable to a certain value (and that would also explain the large negative value in the right-hand-side of Stock_definition). You could try to add the following statement before the solve statement:

empty E;