
Jaromił Najman
- Total activity 2267
- Last activity
- Member since
- Following 0 users
- Followed by 1 user
- Votes 6
- Subscriptions 828
Comments
Recent activity by Jaromił Najman-
In the following I assume that all \(B2R_{b,i}\) variables are binary variables. For simplicity, I will omit the \(b\) index. First, we define an auxiliary integer variable \(x \in \{0,\dots,r\}\) ...
-
Hi Cecilia, This makes helping hard. Do you see any error or similar? Did anything change in your setup? Could you try removing parts of your code to make the model work? This might help in isolati...
-
This can be achieved in the same way, just with another \(\texttt{for}\)-loop. The \( \left(sum_j z_j\right)^2\) is not a problem. You can introduce an additional variable to model \(w= sum_j z_j\)...
-
You can use the addGenConstrNorm method to let Gurobi automatically model the 2-norm. The input arguments of the addGenConstrNorm method are an output variable and a list of single Var objects. Thu...
-
Hi Cecilia, Could you please post the whole output you see? Please note that the TuneTrials parameters only affects the Gurobi parameter tuning tool and has no effect on normal optimization. Best r...
-
Method is a parameter and not an attribute. Thus, you have to use the GRBsetintparam function. GRBnewmodel(LPenv, &LPmodel, "LP", 0, NULL, NULL, NULL, NULL, NULL);error = GRBsetintparam(GRBgetenv(L...
-
Hi Jingyue, Did you try writing the IIS to a file? Luckily your IIS is very small IIS computed: 1 constraints, 2 boundsIIS runtime: 0.00 secondsIIS is minimal Thus, you should have no problems find...
-
This output only lists the number of linear constraints (the NumConstrs attribute). Indicator constraints are general constraints. To get the number of general constraints, you have to query the Nu...
-
Thank you for the example. It works perfectly. Optimizing with the objective function m.setObjective(sum(e[h,f]*(rh[h]-lh[h]) for h in patype for f in Findex.keys()) - beta * sum(c1[f] + c2[f] for ...
-
Can you please post one complete minimal reproducible example? In your latest post, you are using \(\texttt{e}\) and \(\texttt{rh}\), which you defined in your previous post. This is very confusing...