ConfigBase
(class from pyomo.common.config
)
- class pyomo.common.config.ConfigBase(default=None, domain=None, description=None, doc=None, visibility=0)[source]
Bases:
object
Methods
__init__
([default, domain, description, ...])declare_as_argument
(*args, **kwds)Map this Config item to an argparse argument.
display
([content_filter, indent_spacing, ...])domain_name
()generate_documentation
([block_start, ...])generate_yaml_template
([indent_spacing, ...])import_argparse
(parsed_args)initialize_argparse
(parser)name
([fully_qualified])reset
()set_default_value
(default)set_domain
(domain)unused_user_values
()user_values
()Member Documentation
- declare_as_argument(*args, **kwds)[source]
Map this Config item to an argparse argument.
Valid arguments include all valid arguments to argparse’s ArgumentParser.add_argument() with the exception of ‘default’. In addition, you may provide a group keyword argument to either pass in a pre-defined option group or subparser, or else pass in the string name of a group, subparser, or (subparser, group).