__init__(*args, **kwargs)
|
Constructor |
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_concave_constraints([tol])
|
If the objective form of the parameter calculation is used, the data and the spline don't need to match exactly, and we can add constraints on the second derivatives that they are always negative. |
add_convex_constraints([tol])
|
If the objective form of the parameter calculation is used, the data and the spline don't need to match exactly, and we can add constraints on the second derivatives that they are always positive. |
add_decreasing_constraints([tol])
|
If the objective form of the parameter calculation is used, the data and the spline don't need to match exactly, and we can add constraints on the derivatives that they are negative at the knots. |
add_endpoint_second_derivative_constraints()
|
Usually cubic splines use the endpoint constraints that the second derivative is zero. |
add_increasing_constraints([tol])
|
If the objective form of the parameter calculation is used, the data and the spline don't need to match exactly, and we can add constraints on the derivatives that they are positive at the knots. |
add_model(x_data, y_data[, x_knots, ...])
|
Add parameter model to the block. |
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 the data in this component |
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. |
construct([data])
|
Initialize the 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. |
dim()
|
Return the dimension of the index |
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()
|
|
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 |
id_index_map()
|
Return an dictionary id->index for all ComponentData instances. |
index()
|
Returns the index of this ComponentData instance relative to the parent component index set. |
index_set()
|
Return the 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 component is a reference, where "reference" is interpreted as any component that does not own its own data. |
is_variable_type()
|
Return False unless this class is a variable object |
items([sort, ordered])
|
Return an iterator of (index,data) component data tuples |
iteritems()
|
DEPRECATED. |
iterkeys()
|
DEPRECATED. |
itervalues()
|
DEPRECATED. |
keys([sort, ordered])
|
Return an iterator over the component data keys |
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 |
reconstruct([data])
|
REMOVED: reconstruct() was removed in Pyomo 6.0. |
register_private_data_initializer(initializer)
|
|
root_block()
|
Return self.model() |
set_suffix_value(suffix_or_name, value[, expand])
|
Set the suffix value for this component data |
set_value(val)
|
Set the value of a scalar component. |
to_dense_data()
|
TODO |
transfer_attributes_from(src)
|
Transfer user-defined attributes from src to this block |
type()
|
DEPRECATED. |
unfix_all_vars()
|
|
valid_model_component()
|
Return True if this can be used as a model component. |
valid_problem_types()
|
This method allows the pyomo.opt convert function to work with a Model object. |
values([sort, ordered])
|
Return an iterator of the component data objects |
write([filename, format, solver_capability, ...])
|
Write the model to a file, with a given format. |