# Jaromił Najman

Gurobi Staff
• Total activity 2267
• Last activity
• Member since
• Following 0 users
• Followed by 1 user
• Subscriptions 828

## Activity overview

Latest activity by Jaromił Najman
• Jaromił Najman commented,

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\}$$ ...

• Jaromił Najman commented,

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...

• Jaromił Najman commented,

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$$...

• Jaromił Najman commented,

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...

• Jaromił Najman commented,

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...

• Jaromił Najman commented,

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...

• Jaromił Najman commented,

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...

• Jaromił Najman commented,

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...

• Jaromił Najman commented,

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 ...

• Jaromił Najman commented,

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...