
Yali Chen
- Total activity 45
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 6
Posts
Recent activity by Yali Chen-
Complexity analysis
AnsweredFor the formulated optimization problem, I design an algorithm primarily based on Gurobi solving, which means that I mainly use the Gurobi to solve my optimization problem. In thi case, how to anal...
-
convergence property
For the formulated optimization problem, I design an algorithm primarily based on Gurobi solving, which means that I mainly use the Gurobi to solve my optimization problem. In thi case, how to anal...
-
Slow growth of best bound
AnsweredMy code runs as follows, Set parameter NonConvex to value 2Set parameter NumericFocus to value 2Set parameter ScaleFlag to value 2Set parameter Aggregate to value 0Set parameter MIPFocus to value 1...
-
The code runs for a particularly long time
AnsweredMy optimization problem is as follows, and optimization variables are underlined in red. The corresponding code is as follows, from gurobipy import *import gurobipy as gpfrom numpy import *import...
-
Quadratic constraints contain large coefficient range on linear part/max constraint violation (1.0000e+00) exceeds tolerance
AnsweredWe use Gurobi to sove the following problem. The optimization problem are shown as follows. Optimization variables are underlined in red. The code is shown as follows. from gurobipy import *impor...
-
AttributeError: Unable to retrieve attribute 'objVal'
AnsweredWe use Gurobi to sove the following problem. First, let me introduce the details. We choose M numbers from 1 to K, and for each combination, calculate the , and finally obtain the sum value of K!/M...
-
The nonlinear function in the optimization objective contains optimization variables
Awaiting user inputWe use Gurobi to solve the following problem. Optimization variables are underlined in red. Since the optimization objective includes the log function containing optimization variables, we introdu...
-
KeyError: 0. sum1=sum1+b0[combination[km]][0]*math.sqrt(beta0/(H**2+a[combination[km]][0]))*cov(k,combination[km])
AnsweredWe use Gurobi to sove the following problem. Optimization variables are underlined in green. #initialized variables b0=math.sqrt(Pmax)*np.mat(ones((K,1))) q0=np.mat([250,250]) #create model...