opensim-org / opensim-moco

Solve optimal control problems for musculoskeletal models using OpenSim and direct collocation.
https://opensim.stanford.edu/moco
Apache License 2.0
57 stars 16 forks source link

Build Ipopt on windows using gfortran #557

Open chrisdembia opened 4 years ago

chrisdembia commented 4 years ago

We depend on prebuilt binaries for Windows Ipopt, which is fragile. The ampl/coin scripts for building Ipopt are updated to support gfortran, and we should make this a backup option for Ipopt on Windows, as it is likely more stable.

chrisdembia commented 4 years ago

We could alternatively use flang/f18. Whichever Fortran compiler we use, we should have a script for building Ipopt.

chrisdembia commented 4 years ago

The instructions and infrastructure for building Ipopt/COIN-OR software is updated. Hopefully, this will make a Windows version of Ipopt easier to build.

chrisdembia commented 3 years ago

Conda-forge now contains Ipopt! https://github.com/conda-forge/ipopt-feedstock/pull/47/files. We could expect developers to use Ipopt frm conda-forge, or preferably, use conda-forge to install flang and then use CMake to compile Ipopt.

Looks like the Fortran flang compiler frontend is now finally part of LLVM. Unfortunately, and confusingly, LLVM says flang is not supported on Windows. https://releases.llvm.org/11.0.0/tools/flang/docs/ReleaseNotes.html

cc @adamkewley