
Wenjia Shen
- Total activity 15
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 2
Activity overview
Latest activity by Wenjia Shen-
Wenjia Shen commented,
Thank you so much. I really appreciate the time and effort you put into assisting me. Wish you have a great day! Best, Wenjia
-
Wenjia Shen commented,
Hi Riley, I think you mean adding a new variable u (with its lb=1, ub=1) and a new variable v, and rewriting SOC1 as: v + quicksum(aa[h, i] ** 2 for h in range(H)) + bb[i] ** 2 <= cc[i] ** 2v == 4...
-
Wenjia Shen commented,
Hi Riley, Thank you so much for your response. I now understand how to change the coefficients. However, if I want to change the value of “omega” in my SOC1, I can only do so by removing the entire...
-
Wenjia Shen created a post,
How to replace coefficients and constant terms in the model
AnsweredHi, I am running a program with many loops so I'm trying to accelerate it. In my original code, I create a new model for each k and each t, as follows (objective and other constraints are omitted):...
-
Wenjia Shen commented,
Hi Riley, Got it. Thank you so much! Your guidance is exactly what I need to solve the problem. Best, Wenjia
-
Wenjia Shen commented,
Hi Riley, Due to my unfamiliarity with the default settings of the `model.addVar()` function, the equivalent model was previously deemed infeasible. After I adjusted the lower bounds of `bb` and `e...
-
Wenjia Shen commented,
Hi Riley, Actually, taking the second SOC as an example, the sum_h part is like this: Therefore, I should calculate a^2 + b^2 (as I've written in the code), instead of (a+b)^2. I apologize for my ...
-
Wenjia Shen commented,
Hi Riley, Please refer to this Google Drive link: https://drive.google.com/file/d/17RFhDFcoQp57Gf3S5F1R5EEGH6XEWtFa/view?usp=share_link It includes the code ("test.py") and data files. Thank you fo...
-
Wenjia Shen commented,
Hi David, Sorry I misunderstood your previous question. I meant that I have only used version 11.0, and in other models, the use of auxiliary variables has not caused infeasibility. For either the ...
-
Wenjia Shen commented,
Hi Riley, Thank you very much for your guidance! Using epigraphs is indeed useful. I am using Gurobi through Python with the gurobipy package. However, I still hope to know why Gurobi considers the...