__init__(component)
|
|
activate()
|
Set the active attribute to True |
active_blocks(*args, **kwargs)
|
DEPRECATED. |
active_component_data(*args, **kwargs)
|
DEPRECATED. |
active_components(*args, **kwargs)
|
DEPRECATED. |
add_component(name, val)
|
Add a component 'name' to the block. |
add_subproblem(subproblem_fn, ...[, ...])
|
|
all_blocks(*args, **kwargs)
|
DEPRECATED. |
all_component_data(*args, **kwargs)
|
DEPRECATED. |
all_components(*args, **kwargs)
|
DEPRECATED. |
block_data_objects([active, sort, ...])
|
Returns this block and any matching sub-blocks. |
clear()
|
|
clear_suffix_value(suffix_or_name[, expand])
|
Set the suffix value for this component data |
clone([memo])
|
Make a copy of this block (and all components contained in it). |
cname(*args, **kwds)
|
DEPRECATED. |
collect_ctypes([active, descend_into])
|
Count all component types stored on or under this block. |
component(name_or_object)
|
Return a child component of this block. |
component_data_iterindex([ctype, active, ...])
|
DEPRECATED. |
component_data_objects([ctype, active, ...])
|
Return a generator that iterates through the component data objects for all components in a block. |
component_map([ctype, active, sort])
|
Returns a PseudoMap of the components in this block. |
component_objects([ctype, active, sort, ...])
|
Return a generator that iterates through the component objects in a block. |
contains_component(ctype)
|
Return True if the component type is in _ctypes and . |
deactivate()
|
Set the active attribute to False |
del_component(name_or_object)
|
Delete a component from this block. |
display([filename, ostream, prefix])
|
Print the Pyomo model in a verbose format. |
find_component(label_or_component)
|
Returns a component in the block given a name. |
fix_all_vars()
|
|
generate_cut()
|
|
get_suffix_value(suffix_or_name[, default])
|
Get the suffix value for this component data |
getname([fully_qualified, name_buffer, ...])
|
Return a string with the component name and index |
global_num_subproblems()
|
|
index()
|
Returns the index of this ComponentData instance relative to the parent component index set. |
is_component_type()
|
Return True if this class is a Pyomo component |
is_constructed()
|
A boolean indicating whether or not all active components of the input model have been properly constructed. |
is_expression_type([expression_system])
|
Return True if this numeric value is an expression |
is_indexed()
|
Return true if this component is indexed |
is_logical_type()
|
Return True if this class is a Pyomo Boolean object. |
is_named_expression_type()
|
Return True if this numeric value is a named expression |
is_numeric_type()
|
Return True if this class is a Pyomo numeric object |
is_parameter_type()
|
Return False unless this class is a parameter object |
is_reference()
|
Return True if this object is a reference. |
is_variable_type()
|
Return False unless this class is a variable object |
local_num_subproblems()
|
|
model()
|
Return the model of the component that owns this data. |
parent_block()
|
Return the parent of the component that owns this data. |
parent_component()
|
Returns the component associated with this object. |
pprint([ostream, verbose, prefix, sort])
|
Print component information |
private_data([scope])
|
|
reclassify_component_type(name_or_object, ...)
|
TODO |
set_input(root_vars[, tol, comm])
|
It is very important for root_vars to be in the same order for every process. |
set_suffix_value(suffix_or_name, value[, expand])
|
Set the suffix value for this component data |
set_value(val)
|
|
transfer_attributes_from(src)
|
Transfer user-defined attributes from src to this block |
type()
|
DEPRECATED. |
unfix_all_vars()
|
|
valid_problem_types()
|
This method allows the pyomo.opt convert function to work with a Model object. |
write([filename, format, solver_capability, ...])
|
Write the model to a file, with a given format. |