
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-
You can write the complete model using model.write("model.lp") in Python API, although the file will not look exactly the way you want. But I believe it should not be too difficult to come up with ...
-
Hi Tiril! Could you share a minimal reproducible example of the code which throws the error? We will then be able to give you better advice. Best regardsJonasz
-
Hi Alessandro, is the set p continuous, or does it contain all the integers between 2 and 10? If yes, you can just set the appropriate bounds: p = m.addVar(vtype=GRB.INTEGER, lb=2, ub=10) If not, y...
-
Hi Mustafa, Some more questions and thoughts: 1) Why do you model angles as binary variables? angle_list=cvx.Variable(N-1, boolean=True) Don't they have to take some other value, for example betwee...
-
Hi Mustafa, I am afraid I still have too little information to help you. You could try writing down the exact mathematical model to be solved with each iteration, before updating the values for v, ...
-
Hi Elias, you could for example use NetworkX to construct your graph and then simply iterate over its nodes and their respective predecessors and successors to build your constraints. For your toy ...
-
If my understanding of your problem is correct, these equations are used to update the position of a car. I also infer that you want Gurobi to tell you the acceleration and vehicle's angle. What we...
-
Hi Mustafa, Could you please share a formulation of the mathematical model (LP, MIP, ...) you are trying to solve? Rather than code, a mathematical formulation would be useful. An angle, in which a...
-
Hi Mustafa, could you please specify what is the difficulty you are dealing with? What is the model you are trying to implement? Which two outputs are you trying to extract from your objective func...
-
If you are interested in the time taken to find the optimal solution, you can use Python's built-in time module (if you are happy with clock time) - you store the time just before and after the mod...