rliang / libtsqubo Goto Github PK
View Code? Open in Web Editor NEWA header-only C/C++ library for solving QUBO problems through Tabu Search.
License: MIT License
A header-only C/C++ library for solving QUBO problems through Tabu Search.
License: MIT License
Hi
I tried to use your library but I received a Segmentation fault when executing the code in the README (I had to modify the call to tsqubo_instance_new because it needs a parameter.
The error was:
Program received signal SIGSEGV, Segmentation fault.
0x0000000000401b50 in compare_double (q=0x418cb0, v_=0x418df0, a=23, b=11)
at /home/rbras/trabalho/projDiogo-2022/software/libtsqubo-master/tsqubo.h:227
227 return v[q->N[a]] < v[q->N[b]] || (v[q->N[a]] == v[q->N[b]] && q->N[a] < q->N[b]);
Missing separate debuginfos, use: dnf debuginfo-install glibc-2.37-4.fc38.x86_64 libgcc-13.1.1-1.fc38.x86_64 libstdc++-13.1.1-1.fc38.x86_64
(gdb) bt
#0 0x0000000000401b50 in compare_double (q=0x418cb0, v_=0x418df0, a=23, b=11)
at /home/rbras/trabalho/projDiogo-2022/software/libtsqubo-master/tsqubo.h:227
#1 0x0000000000401c88 in ipq_sift_up (q=0x418cb0, dx=0x418df0,
compare=0x401b10 <compare_double(ipq const*, void const*, size_t, size_t)>, k=11)
at /home/rbras/trabalho/projDiogo-2022/software/libtsqubo-master/tsqubo.h:235
#2 0x00000000004025ec in tsqubo_flip_current (ts=0x418c50, i=1)
at /home/rbras/trabalho/projDiogo-2022/software/libtsqubo-master/tsqubo.h:411
#3 0x00000000004029f8 in tsqubo_iterate (ts=0x418c50, ttc=10)
at /home/rbras/trabalho/projDiogo-2022/software/libtsqubo-master/tsqubo.h:479
#4 0x0000000000402a4b in tsqubo_iterate_cutoff (ts=0x418c50, ttc=10, cutoff=5)
at /home/rbras/trabalho/projDiogo-2022/software/libtsqubo-master/tsqubo.h:493
#5 0x0000000000402b69 in main () at test1.cpp:20
(gdb) print q
$1 = (const ipq *) 0x418cb0
(gdb) print *q
$2 = {N = 0x418e30, I = 0x418e50, size = 18446744073709551614}
Best regards,
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.