Create models with FORTRAN and Gurobi
AnsweredSince FORTRAN is one of the TOP20 programming languages in the TIOBE index (https://www.tiobe.com/tiobe-index/), I am looking to create and manipulate mixed-integer linear programming models with FORTRAN. I have not found a library similar to Concert, Pyomo, or JuMP for FORTRAN.
Is it possible to create models using FORTRAN and Gurobi?
Kind regards,
Bruno
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Hi Bruno,
I see that you already posted this question on Stackoverflow - apparently, you are not satisfied with the answers/comments there.
Let me give you my two cents on the topic: There is basically no active community around FORTRAN anymore. There are still quite a lot of high-performance codes out there written in FORTRAN so there is still a need to maintain these and also to learn FORTRAN. I believe this is the main reason for FORTRAN being in this TOP20 list. By the way, also Assembly is in this list and even higher up than FORTRAN although no one would suggest writing math programming models in Assembly.
There is also no advantage in using FORTRAN over C. Both are equally performant and close to the machine.
Your best bet if you really want to work in FORTRAN is to use a FORTRAN-to-C link to translate your code to one of the available C APIs.
Fun fact: The Xpress code used to be written in FORTRAN until they converted it to C several years ago.
Cheers,
Matthias0 -
Dear Matthias,
Thank you very much for your attention.
Kind regards,
Bruno
0
Post is closed for comments.
Comments
3 comments