Quentin De Boever
- Total activity 15
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 4
- Subscriptions 4
Posts
Recent activity by Quentin De Boever-
Constraint Issue: 'Var' object cannot be interpreted as an integer
AnsweredHello, I have an issue where I have defined a variable as an integer, but my constraints fail to run due to this error. I have attached some pictures of my code for reference. Any ideas on what the...
-
Objective Function based on Interpolation/Look-Up Table
AnsweredHello, I have created a function using scipy.interpolate.interp2d . Essentially, I call this function and give two inputs, and receive one output based on the inputs. Here is an example: my data i...
-
KeyError 0 for summing variables in objective function (Using Python)
AnsweredHi, I have the following code: # Model Namem = gp.Model("Optimal_Sizing")# Adding Variablesu1 = m.addVars(choice1,vtype=GRB.BINARY,name="u1") # Category 1 choice (DG)u2 = m.addVars(choice2,vtype=GR...
-
model.addConstrs: Can't set variables equal to changing parameter?
AnsweredHi, I have a VERY simple constraint I want to implement. Here's the general form: x(t) + y(t) = A(t) for t = {1,4} where x(t) and y(t) are variables. A(t) is a given vector/array. Can someone pleas...