简体   繁体   English

pyomo属性,方法,功能

[英]Pyomo attributes, methods, functions

I am new pyomo user. 我是新的pyomo用户。 I want to learn that is there any document or way to see all attributes, methods and functions of pyomo? 我想了解是否有任何文档或方法可以查看pyomo的所有属性,方法和功能? Same issue for CBC. CBC的同一个问题。

Source-level documentation is not currently supported for Pyomo. Pyomo当前不支持源代码级文档。 The Pyomo developers have discussed whether/how to make this a priority, but this is not yet the focus of the team. Pyomo开发人员已经讨论了是否/如何将其作为优先事项,但这还不是团队的重点。

From the interactive Python shell, you can import a module and then do a help() on it to see documentation included in the module itself: 从交互式Python Shell中,您可以导入一个模块,然后在其上执行help()以查看该模块本身包含的文档:

>>> import pyomo
>>> help(pyomo)

You can also use the dir() command to see a list of all attributes and functions that are in the module: 您还可以使用dir()命令查看模块中所有属性和函数的列表:

>>> dir(pyomo)

But I have to ask -- what is wrong with the online documentation at www.pyomo.org ? 但是我不得不问-www.pyomo.org的在线文档有什么问题? It seems like a very nice homepage for the project. 看来该项目的主页非常不错。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM