From 80d9e6bb4eb78d7e8de8bfaedab8025db98fe8ca Mon Sep 17 00:00:00 2001 From: TimQu Date: Thu, 3 Nov 2016 10:34:03 +0100 Subject: [PATCH] Compatibility with recent hypro version Former-commit-id: d5d9e12b47415f907bb2cdc5f26ca734e94ce3eb --- src/adapters/HyproAdapter.h | 8 ++++---- .../helper/SparseMultiObjectivePostprocessor.cpp | 2 +- src/storage/geometry/HyproPolytope.cpp | 6 +++--- src/storage/geometry/HyproPolytope.h | 4 ++-- src/storage/geometry/Polytope.cpp | 2 +- src/storage/geometry/Polytope.h | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/adapters/HyproAdapter.h b/src/adapters/HyproAdapter.h index e041b6881..f1ffc8a95 100644 --- a/src/adapters/HyproAdapter.h +++ b/src/adapters/HyproAdapter.h @@ -6,10 +6,10 @@ #ifdef STORM_HAVE_HYPRO -#include -#include -#include -#include +#include +#include +#include +#include #include "src/adapters/CarlAdapter.h" #include "src/storage/geometry/HalfSpace.h" diff --git a/src/modelchecker/multiobjective/helper/SparseMultiObjectivePostprocessor.cpp b/src/modelchecker/multiobjective/helper/SparseMultiObjectivePostprocessor.cpp index b7307ccb8..1dd2c62c5 100644 --- a/src/modelchecker/multiobjective/helper/SparseMultiObjectivePostprocessor.cpp +++ b/src/modelchecker/multiobjective/helper/SparseMultiObjectivePostprocessor.cpp @@ -207,7 +207,7 @@ namespace storm { transformationMatrix[objIndex][objIndex] = storm::utility::convertNumber(preprocessorData.objectives[objIndex].toOriginalValueTransformationFactor); transformationVector.push_back(storm::utility::convertNumber(preprocessorData.objectives[objIndex].toOriginalValueTransformationOffset)); } - return polytope->linearTransformation(transformationMatrix, transformationVector); + return polytope->affineTransformation(transformationMatrix, transformationVector); } diff --git a/src/storage/geometry/HyproPolytope.cpp b/src/storage/geometry/HyproPolytope.cpp index a33118e0b..5d28a65af 100644 --- a/src/storage/geometry/HyproPolytope.cpp +++ b/src/storage/geometry/HyproPolytope.cpp @@ -145,13 +145,13 @@ namespace storm { } template - std::shared_ptr> HyproPolytope::linearTransformation(std::vector const& matrix, Point const& vector) const{ - STORM_LOG_THROW(!matrix.empty(), storm::exceptions::InvalidArgumentException, "Invoked linear transformation with a matrix without rows."); + std::shared_ptr> HyproPolytope::affineTransformation(std::vector const& matrix, Point const& vector) const{ + STORM_LOG_THROW(!matrix.empty(), storm::exceptions::InvalidArgumentException, "Invoked affine transformation with a matrix without rows."); hypro::matrix_t hyproMatrix(matrix.size(), matrix.front().size()); for(uint_fast64_t row = 0; row < matrix.size(); ++row) { hyproMatrix.row(row) = storm::adapters::toHypro(matrix[row]); } - return std::make_shared>(internPolytope.linearTransformation(std::move(hyproMatrix), storm::adapters::toHypro(vector))); + return std::make_shared>(internPolytope.affineTransformation(std::move(hyproMatrix), storm::adapters::toHypro(vector))); } template diff --git a/src/storage/geometry/HyproPolytope.h b/src/storage/geometry/HyproPolytope.h index 78eb56ccd..9388a6f45 100644 --- a/src/storage/geometry/HyproPolytope.h +++ b/src/storage/geometry/HyproPolytope.h @@ -98,13 +98,13 @@ namespace storm { virtual std::shared_ptr> minkowskiSum(std::shared_ptr> const& rhs) const override; /*! - * Returns the linear transformation of this polytope P w.r.t. the given matrix A and vector b. + * Returns the affine transformation of this polytope P w.r.t. the given matrix A and vector b. * The result is the set {A*x+b | x \in P} * * @param matrix the transformation matrix, given as vector of rows * @param vector the transformation offset */ - virtual std::shared_ptr> linearTransformation(std::vector const& matrix, Point const& vector) const override; + virtual std::shared_ptr> affineTransformation(std::vector const& matrix, Point const& vector) const override; /*! * Finds an optimal point inside this polytope w.r.t. the given direction, i.e., diff --git a/src/storage/geometry/Polytope.cpp b/src/storage/geometry/Polytope.cpp index 8b75cfb72..150535dd0 100644 --- a/src/storage/geometry/Polytope.cpp +++ b/src/storage/geometry/Polytope.cpp @@ -216,7 +216,7 @@ namespace storm { } template - std::shared_ptr> Polytope::linearTransformation(std::vector const& matrix, Point const& vector) const { + std::shared_ptr> Polytope::affineTransformation(std::vector const& matrix, Point const& vector) const { STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "Functionality not implemented."); return nullptr; } diff --git a/src/storage/geometry/Polytope.h b/src/storage/geometry/Polytope.h index 0767ce346..b27f83a3e 100644 --- a/src/storage/geometry/Polytope.h +++ b/src/storage/geometry/Polytope.h @@ -100,13 +100,13 @@ namespace storm { virtual std::shared_ptr> minkowskiSum(std::shared_ptr> const& rhs) const; /*! - * Returns the linear transformation of this polytope P w.r.t. the given matrix A and vector b. + * Returns the affine transformation of this polytope P w.r.t. the given matrix A and vector b. * The result is the set {A*x+b | x \in P} * * @param matrix the transformation matrix, given as vector of rows * @param vector the transformation offset */ - virtual std::shared_ptr> linearTransformation(std::vector const& matrix, Point const& vector) const; + virtual std::shared_ptr> affineTransformation(std::vector const& matrix, Point const& vector) const; /*! * Returns the downward closure of this, i.e., the set { x | ex. y \in P : x<=y} where P is this Polytope.