hadar.optimizer.domain.input.
Consumption
Bases: hadar.optimizer.utils.JSON
hadar.optimizer.utils.JSON
Consumption element.
from_json
Link
Link element
Production
Production element
Storage
Storage element
Converter
Converter element
to_json
InputNetwork
Network element
InputNode
Node element
Study
Main object to facilitate to build a study
add_link
Add a link inside network.
network – network where nodes belong
src – source node name
dest – destination node name
cost – cost of use
quantity – transfer capacity
add_network
add_node
network
Entry point to create study with the fluent api.
NetworkFluentAPISelector
Bases: object
object
Network level of Fluent API Selector.
build
Build study.
return study
converter
Add a converter element.
name – converter name
to_network – converter output network
to_node – converter output node on network
max – maximum quantity from converter
cost – cost for each quantity produce by converter
link
Add a link on network.
src – node source
dest – node destination
cost – unit cost transfer
quantity – available capacity
NetworkAPISelector with new link.
Go to network level.
name – network level, ‘default’ as default name
NetworkAPISelector with selector set to ‘default’
node
Go to node level.
name – node to select when changing level
NodeFluentAPISelector initialized
NodeFluentAPISelector
Node level of Fluent API Selector
study
consumption
Add consumption on node.
name – consumption name
cost – cost of unsuitability
quantity – consumption to sustain
NodeFluentAPISelector with new consumption
Go to different node level.
name – new node level
production
Add production on node.
name – production name
cost – unit cost of use
quantity – available capacities
NodeFluentAPISelector with new production
storage
Create storage.
capacity – maximum storage capacity (like of many quantity to use inside storage)
flow_in – max flow into storage during on time step
flow_out – max flow out storage during on time step
cost – unit cost of storage at each time-step. default 0
init_capacity – initial capacity level. default 0
eff – storage efficient (applied on input flow stored). default 0.99
to_converter
Add an ouptput to converter.
ratio – ratio for output
hadar.optimizer.domain.numeric.
ColumnNumericValue
Bases: hadar.optimizer.domain.numeric.NumpyNumericalValue
hadar.optimizer.domain.numeric.NumpyNumericalValue
Implementation with one time step by scenario with shape (nb_scn, 1)
flatten
flat data into 1D matrix. :return: [v[0, 0], v[0, 1], v[0, 2], …, v[1, i], v[2, i], …, v[j, i])
MatrixNumericalValue
Implementation with complex matrix with shape (nb_scn, horizon)
NumericalValue
Bases: hadar.optimizer.utils.JSON, abc.ABC, typing.Generic
abc.ABC
typing.Generic
Interface to handle numerical value in study
NumericalValueFactory
create
NumpyNumericalValue
Bases: hadar.optimizer.domain.numeric.NumericalValue, abc.ABC
hadar.optimizer.domain.numeric.NumericalValue
Half-implementation with numpy array as numerical value. Implement only compare methods.
RowNumericValue
Implementation with one scenario wiht shape (horizon, ).
ScalarNumericalValue
Bases: hadar.optimizer.domain.numeric.NumericalValue
Implement one scalar numerical value i.e. float or int
hadar.optimizer.domain.output.
OutputProduction
OutputNode
build_like_input
Use an input node to create an output node. Keep list elements fill quantity by zeros.
input – InputNode to copy
fill – array to use to fill data
OutputNode like InputNode with all quantity at zero
OutputStorage
OutputLink
OutputConsumption
Consumption element
OutputNetwork
OutputConverter
Result
Result of study