worc4021 / geocalclib Goto Github PK
View Code? Open in Web Editor NEWInterface for MATLAB to use LRS library and derivative functionality.
License: GNU General Public License v2.0
Interface for MATLAB to use LRS library and derivative functionality.
License: GNU General Public License v2.0
Hello,
I am trying to solve large facet enumeration problems with GeoCalcLib. It works great for fairly large problems -- I have a V-representation cone in 18 dimensions with 30 rays. The resulting H-representation has about 50,000 facets. As a check, I can solve a linear program over the H and V representations separately and they give the same answer.
However, I would like to add more rays to the V-representation and perform facet enumeration on, say, 40 rays in 18 dimensions. When I do this, GeoCalcLib/lrs produces an H-representation with about 4,000,000 facets. However, in my test of solving a linear program over the H and V representations, each gives a different result. In general, do you know if LRS struggles with very large outputs? Or could there be numerical precision issues at this scale - might you recommend changing any settings for large problems?
Thanks!
Dear Rainer Manuel Schaich,
I'm trying to use your code to solve a vertex enumeration problem, i.e. given H-representation, find its V-representation. I follow the tutorial on the website and stuck when editing startup. I created a startup m-file in the file where I install the GeoCalcLib.
When I run
[,] = loadlibrary('libgeocalc','PATH/mainFunctions.h');
display('GeoCalc library loaded.');
the error "image not found" occurs. It seems that no library is found. I checked the src file which is the path points to. There is no file called libgeocalc.
Can you please tell me how to solve this?
Best,
Tianyu
My installation steps were based on http://worc4021.github.io/jekyll/update/2016/04/08/welcome-to-jekyll.html:
files
within the repo for INSTALLDIR.gmp.h
in /usr/local/include
and libgmp.a
, libgmp.la
, and libgmp.so.10.3.2
(3 files linking to it, including libgmp.so
) in /usr/local/lib
MATLAB_ROOT=/usr/local/MATLAB/2017b/
INSTALLDIR pointing to files folder created in step 2.
addpath(genpath('/datafiles/git/Matlab/Library/GeoCalcLib/'))
GeoCalcLib
and GeoCalcLib/files
as wellhelp LRS
works.However, [~,~] = loadlibrary('libgeocalc','path/to/GeoCalcLib/mainFunctions.h'))
throws error attached below.
My system setup is Ubuntu 17.10 and the output of MATLAB's ver command is as follows:
Operating System: Linux 4.13.0-46-generic #51-Ubuntu SMP Tue Jun 12 12:36:29 UTC 2018 x86_64
Java Version: Java 1.8.0_121-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Version 9.3
My LD_LIBRARY_PATH is the default version.
My PATH now includes in addition to the default, /usr/local/lib
and /usr/local/include
.
My LD_PRELOAD is empty.
Any help regarding the installation is greatly appreciated! Thank you.
Error using loadlibrary
There was an error loading the library
"/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so"
Missing symbol '__gmpq_abs' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpq_add' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpq_canonicalize' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpq_clear' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpq_div' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpq_equal' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpq_get_d' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpq_get_den' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpq_get_num' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpq_init' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpq_mul' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpq_neg' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpq_set' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpq_set_d' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpq_set_den' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpq_set_num' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpq_set_ui' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpz_add' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpz_addmul' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpz_clear' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpz_cmp' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpz_cmp_ui' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpz_divexact' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpz_fac_ui' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpz_gcd' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpz_get_d' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpz_init' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpz_init_set_ui' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpz_mul' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpz_mul_ui' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpz_neg' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpz_out_str' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpz_set' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpz_set_si' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpz_sqrt' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol '__gmpz_sub' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mexErrMsgIdAndTxt' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mexErrMsgTxt' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mexPrintf' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxCalcSingleSubscript' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxCreateCellArray' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxCreateNumericMatrix' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxDestroyArray' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxGetData' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxGetField' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxGetM' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxGetN' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxGetPr' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxGetScalar' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxGetString' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxIsChar' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxIsComplex' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxIsDouble' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxIsEmpty' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxIsScalar' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxIsSparse' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxIsStruct' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxIsUint32' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxMalloc' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxSetCell' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxSetM' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxSetN' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
Missing symbol 'mxSetPr' required by
'/datafiles/git/Matlab/Library/GeoCalcLib/libgeocalc.so'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.