|
std::unique_ptr< UnfeasiblePbAnalyzer > | makeUnfeasiblePbAnalyzer () |
|
bool | lessTypeName (const std::shared_ptr< WatchedConstraint > a, const std::shared_ptr< WatchedConstraint > b) |
|
bool | sameType (const std::shared_ptr< WatchedConstraint > a, const std::shared_ptr< WatchedConstraint > b) |
|
bool | greaterValue (const std::shared_ptr< WatchedConstraint > a, std::shared_ptr< WatchedConstraint > b) |
|
bool | checkTimeSteps (Optimisation::LinearProblemApi::FillContext &ctx) |
|
template<typename Key , typename Value , typename UnaryOp = IdentityFunction<Value>, typename HashType = std::hash<Key>> |
std::unordered_map< Key, Value, HashType > | add_maps (const std::unordered_map< Key, Value, HashType > &left, const std::unordered_map< Key, Value, HashType > &right, UnaryOp op=IdentityFunction< Value >{}) |
|
FullKeyMap | scale_map (const FullKeyMap &map, double scale) |
|
template<typename BinaryOperator > |
TimeDependentLinearExpression | BinaryOpLinearExpression (const std::unordered_map< unsigned int, LinearExpression > &left, const std::unordered_map< unsigned int, LinearExpression > &right, BinaryOperator op) |
|
std::string | buildVariableName (const PartialKey &key, std::optional< unsigned int > scenario, std::optional< unsigned int > timestep) |
|
Read Linear Constraint Visitor Visits a Node and produces a Linear Constraint (defined by its Linear Expression and bounds). The root node is expected to be a comparison node.
Read Linear Expression Visitor Visits a Node and produces a Linear Expression (defined by an offset and non-zero coefficients of variables) Comparison Nodes are not allowed
template<typename Key , typename Value , typename UnaryOp = IdentityFunction<Value>, typename HashType = std::hash<Key>>
std::unordered_map< Key, Value, HashType > Antares::Optimization::add_maps |
( |
const std::unordered_map< Key, Value, HashType > & | left, |
|
|
const std::unordered_map< Key, Value, HashType > & | right, |
|
|
UnaryOp | op = IdentityFunction<Value>{} ) |
Element-wise sum of two [string, double] maps, preceded an element-wise multiplication of the right-hand-side map. Keys that do not exist in one of the two maps are considered to have a zero value. For every key: value = left_value + rhs_multiplier * right_value
- Parameters
-
left | The left hand side map |
right | The right hand side map |
- Returns
- The map resulting from the operation