
ALESSANDRA VIEIRA
- Total activity 29
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 8
Activity overview
Latest activity by ALESSANDRA VIEIRA-
ALESSANDRA VIEIRA commented,
Hello David, Thank you for your answers. The code that referred to : new_model.reset();original_model.reset();new_model.write("problem_2.lp");new_model.optimize();// Retrieving variables from t...
-
ALESSANDRA VIEIRA commented,
Thank you for your answer!You wrote: "The model was copied but the variable objects you created for the first model are still attached only to this one.", soI can't understand how: after using rese...
-
ALESSANDRA VIEIRA created a post,
Create new model in the same C++ file
OngoingI am modelling in GUROBI C++. I generate a model with several decision variables and constraints model. Next, I copy the orignal model in new_model and add new constraint refering the variables ...
-
ALESSANDRA VIEIRA commented,
Hi Riley, Thank you! With the suggested approach (and also remembering that Q(x) has many variables compounding it, as the x goes further in set X, the previous constraint in x-1 must be removed ...
-
ALESSANDRA VIEIRA commented,
Hi people, I'm still trying to solve my problem... I tried several scenarios,didn't work at all, first I tried just to change in RHS (Gurobi 11/C++) expr[x].RHS(new_value), but it wasn't recogni...
-
ALESSANDRA VIEIRA commented,
Hi Simran, Thank you for your fast answer! My optimization procedure in summary consists of the following : -Runs suboptimal model without constraint in while loop; -Add constraints in part, until ...
-
ALESSANDRA VIEIRA commented,
Hi, Would it be possible to run the same model in consecutive optimizations? removing from the previous constraint, then running again, without the last optimization being influenced by the removed...
-
ALESSANDRA VIEIRA commented,
Hallo gurobot! The question is : GRBVar x;GRBLinExrpr b;GRBQuadExpr c;GRBLinExpr d;c=6*x;d=x+x;b= c+d; The solver does not accept, the sum of expr can be easily a LinExpr, but I think is because...
-
ALESSANDRA VIEIRA commented,
Hi Matthias, The problem is my array P_wind is one single function output, that was randomly chosen from one data 2-D array [T][N] that will be the Upper Bound (UB) for the Gurobi variable W_curt[...
-
ALESSANDRA VIEIRA created a post,
Bounds for Variable
AnsweredI am using Gurobi 9.0, with C++. I am trying to put an array element, that is created for a C++ function ( use random) as a UPPER bound of a GRB Var array, as follows: for ( t = 0; t < z; t++) { ...