
Jonasz Staszek
- Total activity 306
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 14
- Subscriptions 125
Comments
Recent activity by Jonasz Staszek-
Hi Iason, I take it you are a beginner in this field - I would then recommend these resources: LP Tutorial MILP Tutorial Hope this helps. Best regardsJonasz
-
A trivial code example would be: import gurobipy as gp def mycallback(model, where): if where == GRB.Callback.MIPSOL solution = model.cbGetSolution(model._vars) model._solutions[mo...
-
Hi Ana, technically applying your heuristic and function could be done from within a callback every time you get a feasible solution. But since the solver has no clue about the other function which...
-
Hi Runfeng, in Gurobi a variable is an object which is tied to a model instance. Whenever you create a new model instance (e.g. by copying or creating a presolved model) you also generate "new" var...
-
Hi Luka, you may be after generating one variable for each subset for which you look for a maximum and then adding a max general constraint. I would try something along the lines of: meritorder = g...
-
Thanks for pointing this out - my code was meant to be a rough guideline. Now, we have a correct piece of code for future reference. Best regardsJonasz
-
Hi Alex, if you are only interested in the initial gap, then you might be happy taking the first feasible solution found by Gurobi, as well as the value of the bound. This can be done by setting th...
-
Dear Bahar, as far as I can see, you are solving five models. You do that in a sequential fashion, so you can't properly define all of them upfront - you can most likely only properly define the fi...
-
Hi Xuan, IIS - as per its definition - is a minimal system of constraints which together cause infeasibility. They are "equally important" - if you remove any of them, the system (but not necessari...
-
Hi Bahar, based on the description you provided it is difficult to understand what exactly is the difficulty you are dealing with. Could you please provide us with a minimal reproducible example of...