Friendly Sam
latest
How to install Friendly Sam
For developers
What Friendly Sam is for
Variables and expressions
Optimization problems
Model basics: Parts and constraints
Flow networks: Nodes and resources
Example model
API reference
Friendly Sam
Docs
»
friendlysam.models.MyopicDispatchModel.add_part
Edit on GitHub
friendlysam.models.MyopicDispatchModel.add_part
¶
MyopicDispatchModel.
add_part
(
part
)
¶
Add a part to this part.
Parameters:
part
(
Part
or subclass instance) – The part to add.
Raises:
InsanityError
– If the calling part is a descendant of the part to add. (This would generate a cyclic relationship.)
Read the Docs
v: latest
Versions
latest
stable
develop
v0.3.0
v0.2.0
Downloads
pdf
htmlzip
epub
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.