0

I have a question about adding a variable constraint which depends of the chosen value in the solver. My problem is as follows.

I have a set of possible production moments. each production possibility has an amount produced per hour. Also in the same hour there is an demand. the delta of production and demand goes to / will extracted out of the storage.

A certain item has a maximum storage. so the constraint 1 depends on the chosen production moment.

  • objective -> minimize the cost of a certain span
  • constraint 1-> the storage needs to be above zero and lower than x. x depends of the chosen production moment.

Is there anyone who can help me with this problem. If not, which sort of data needs to be added to make the problem more clear?

Regards, Floris

1
  • question is clear, but what library you are using? do you heard about lmfit? I really like it to add constrains Commented Sep 6, 2022 at 6:57

1 Answer 1

2

This is usually modeled as:

inventory[t] = inventory[t-1] + production[t] - demand[t]
0 <= inventory[t] <= capacity
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.