cyipopt_接口

cyipopt_interface 模块包含了与 Cython 化的 ipopt 求解器 cyipopt 的 Python 接口(更多信息请参见: https://github.com/mechmotum/cyipopt.git)。要使用该接口,您可以从抽象基类 CyIpoptProblemInterface 创建一个派生实现,该基类提供了必要的方法。

注意:此模块还包括一个默认实现 CyIpopt,只要这些类返回 numpy ndarray 对象作为向量和 coo_matrix 对象作为矩阵(例如,AmplNLP 和 PyomoNLP),它就可以与从 AslNLP 派生的问题一起使用。

Classes

CyIpoptNLP(nlp[, intermediate_callback, ...])

CyIpoptProblemInterface()

cyipopt.Problem 的抽象子类,定义了一个可以用作 CyIpopt 接口的对象。