汉涛 田
- Total activity 12
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 4
Posts
Recent activity by 汉涛 田-
Issue with Adding Constraints in Gurobi Using Data from Excel
AnsweredHello, I'm currently working on an optimization model using Gurobi and I have encountered an issue when trying to add constraints. My model involves reading data from an Excel file and using it to ...
-
to solve an optimal solution for a time period
AnsweredWhat should I do if I want to solve an optimal solution for a time period? Let's say there are variables - energy storage x, constants - electricity price (buy/sell). Over a period of 5 hours, the ...
-
something problems in Python code
AnsweredHow can I express this problem in the language of gurobi 11 (python code), my own code always gives errors: variable x when x>=0,objective=2*x whenx<0,objective=-3*|x| -10
-
something problems in Python code
import gurobipy from gurobipy import * m = Model("mip1") # 创建常量 pbuy = 0.27 psold = 0.13 gsold = 0.2 gbuy = 0.4 pload = 56.079715030976004 hload = 40.37739482230272 gload = 43.768518510060744 ppv =...