
Maliheh Aramon
- Total activity 290
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 122
Comments
Recent activity by Maliheh Aramon-
Hi Shaan, 1. Would keeping model.reset(1) instead of model.dispose() lead to an incorrect solution? Not necessarily. The model.reset(1) essentially does not have any impact because you have alr...
-
Hi Aryaman, In every function call, you are not changing Gurobi parameters, you are changing the problem input that results in a new model object. You can remove the model.reset(1) from the end and...
-
Hi Vuttimate, The parameter Method indicates the algorithm used to solve the initial root relaxation of your MIP model. According to the documentation, the default automatic setting (value of -1) ...
-
Hi Priyanka, Do you want to implement the constraint below? \[\mbox{if} ~~ \sum_{l} a_{k, l, T_j} \geq 1 \rightarrow \sum_{l, m} q_{l,k,m,T_i} \leq c_k \sum_{l} a_{k, l, T_j}, ~~ \forall k, j, i ~...
-
Hi Juan, Which Gurobi version you are using? In Gurobi versions <= 9.5.0, it is not possible to add an instance of LinExpr(your \(\texttt{term2}\) objective) to an instance of MLinExpr (your \(\te...
-
Hi Danning, My point was that if a decision variable does not appear in the objective function, it does not mean that the decision variable does not play a role in defining the feasible solution s...
-
Hi Danning, The feasible space for an optimization model is defined by all its constraints, regardless of whether their associated decision variables directly appear in the objective function or n...
-
Hi Masoud, Yes, you can use the integer-valued BranchPriority variable attribute to set a branching priority for each variable. For example, in Gurobi C++ API, you can use the GRBVar::set(GRB_IntA...
-
Yes the warnings are strange if the model is written as an MPS file by Gurobi. Could you please post a minimal, reproducible example? Which Gurobi version are you using? Alternatively, you can sha...
-
Hi Masoud, In Gurobi C++ API, you can use: if (model.get(GRB_IntAttr_Status) == GRB_OPTIMAL) Best regards, Maliheh