How to export optimization model in ojalgo

142 views Asked by At

I build up a optimization model in ojalgo (ExpressionsBasedModel). Is there a way to export it to check the model? So far I am only able to export the lower and upper limits of variables and constraints but I am not able to export the variable's coefficients of constraints. I checked the available functions but I coudn't find an appropriate one. Only importing an MPS file I could find. Has someone a hint how to export the model without using an extra framework/external libraries?

1

There are 1 answers

4
apete On BEST ANSWER

There is no way to generate/export an MPS file using ojAlgo.

If you want to verify solver results with some 3:d party solver, you can do that. I believe the community (free) version of cplex allows up to 1000 variables and constraints.

https://github.com/optimatika/ojAlgo-extensions/tree/master/ojAlgo-cplex