Location: LEMON/LEMON-main/cmake/FindGLPK.cmake - annotation
Load file history
Support real types + numerical stability fix in NS (#254)
- Real types are supported by appropriate inicialization.
- A feature of the XTI spanning tree structure is removed to ensure
numerical stability (could cause problems using integer types).
The node potentials are updated always on the lower subtree,
in order to prevent overflow problems.
The former method isn't notably faster during to our tests.
r473:17d918051964 r473:17d918051964 r473:17d918051964 r473:17d918051964 r473:17d918051964 r473:17d918051964 r473:17d918051964 r473:17d918051964 r473:17d918051964 r473:17d918051964 r473:17d918051964 r473:17d918051964 r473:17d918051964 r473:17d918051964 r473:17d918051964 r473:17d918051964 r473:17d918051964 r473:17d918051964 r473:17d918051964 r473:17d918051964 | SET(GLPK_REGKEY "[HKEY_LOCAL_MACHINE\\SOFTWARE\\GnuWin32\\Glpk;InstallPath]")
GET_FILENAME_COMPONENT(GLPK_ROOT_PATH ${GLPK_REGKEY} ABSOLUTE)
FIND_PATH(GLPK_INCLUDE_DIR
glpk.h
PATHS ${GLPK_REGKEY}/include)
FIND_LIBRARY(GLPK_LIBRARY
NAMES glpk
PATHS ${GLPK_REGKEY}/lib)
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GLPK DEFAULT_MSG GLPK_LIBRARY GLPK_INCLUDE_DIR)
IF(GLPK_FOUND)
SET(GLPK_LIBRARIES ${GLPK_LIBRARY})
SET(GLPK_BIN_DIR ${GLPK_ROOT_PATH}/bin)
ENDIF(GLPK_FOUND)
MARK_AS_ADVANCED(GLPK_LIBRARY GLPK_INCLUDE_DIR GLPK_BIN_DIR)
|