62 std::shared_ptr<Polytope<ValueType>>
asPolytope()
const {
64 "Tried to construct a polytope form a hyperrectangle but the numbers of given lower and upper bounds do not match.");
65 std::vector<Halfspace<ValueType>> halfspaces;
68 std::vector<ValueType> direction(
lowerBounds().size(), storm::utility::zero<ValueType>());
69 direction[
i] = -storm::utility::one<ValueType>();
71 halfspaces.emplace_back(std::move(direction), std::move(offset));
73 direction = std::vector<ValueType>(
lowerBounds().size(), storm::utility::zero<ValueType>());
74 direction[
i] = storm::utility::one<ValueType>();
76 halfspaces.emplace_back(std::move(direction), std::move(offset));