Open FabianHofmann opened 1 year ago
Hi @FabianHofmann ,
thanks for your request. I have a quick and dirty implementation of your suggested code in PR #9. As I have never worked with LinoPy before, I am missing a few basics here where you can help me out, e.g.
For now it also gives me
Infeasible or unbounded model
Optimization failed:
Status: warning
Termination condition: infeasible_or_unbounded
Solution: 0 primals, 0 duals
Objective: nan
Solver model: available
Solver message: 4
Maybe you can fix this?
Hey @justine18, thank you for the quick reply! I am happy to help, I will make a proposition how to solve the points. To clarify for myself: What is the aim of running the solving with a time out of 0 seconds? Is it for testing the IO to the solver? If that is the case, that would be solver dependent, as linopy uses python packages from gurobi, cplex and others during the solving process.
The aim is to test the IO to the solver. As this is indeed solver dependent, I use Gurobi for all modeling frameworks.
I pushed some preliminary results for a small |I|. I will run the large instances overnight.
dear @justine18,
thank you very much for the nice comparison. I was wondering whether we could include linopy in the benchmark?
I have prepared some code that should give a good start:
I made a few benchmarks and it took around 7 secs to create the index and model in linopy with n = 300000 and cardinality_of_j = 20. Without the creation of
index
it took 3.4 secs.