【问题标题】:Can I get Ipopt's version from the C++ interface?我可以从 C++ 接口获取 Ipopt 的版本吗?
【发布时间】:2022-08-11 03:14:02
【问题描述】:

我可以通过命令行从可执行文件中获取 Ipopt 的版本:ipopt --version。但是,我想从不使用可执行文件的 c++ 接口获取版本。这可能吗?

对于上下文,我已经按照标准说明(在 GitHub 存储库上)安装了 Ipopt,并且正在运行包含的 cpp 示例:

https://github.com/coin-or/Ipopt/blob/stable/3.14/examples/Cpp_example/cpp_example.cpp

在 Ubuntu 18.04 上。

我的最终目标是获得 CyIpopt 使用的 Ipopt 版本,它链接到 libipopt.so,类似于 c++ 接口,所以我认为这是一个很好的第一步。

    标签: ipopt cyipopt


    【解决方案1】:

    版本在IpoptConfig.h 中定义为IPOPT_VERSION

    【讨论】:

      猜你喜欢
      • 2014-03-06
      • 2010-10-28
      • 2017-01-12
      • 1970-01-01
      • 2017-04-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多