Recently I have converted an ILP from Python to Julia, where I’ve found building the model is significantly faster!
This suggests that your Python code can probably be improved.
I am writing a constraint in a fashion that conflicts with any format
The MPS writer doesn’t support quadratic constraints at present.
Why do you need to write it to file? If necessary, you can use the Gurobi file writer:
model = direct_model(Gurobi.Optimizer()) # <-- Make sure to use `direct_model`
# ... build model etc...
Gurobi.GRBwrite(backend(model), "test.mps")
do not hesitate to point out if I have missed anything on the “Make it easier to help you”
This is a good question ![]()