Repository for organization-wide discussions and other organization documents.
coin-or / bcp Goto Github PK
View Code? Open in Web Editor NEWBranch-Cut-Price Framework
License: Other
Branch-Cut-Price Framework
License: Other
Issue created by migration from Trac.
Original creator: fmargot
Original creation time: 2007-01-18 21:17:14
Assignee: somebody
Version:
The tests in BCP_lp_user::test_full() (similar tests in test_binary() and test_integer())
if (val < vari->lb() - etol || val > vari->ub() + etol)
return(NULL);
might make test_full() return "infeasible" for a solution where all integer variables are indeed integer (with precision etol), but a continuous variable is slightly below its lower bound. Then BCP will fail, as no branching variable can be found.
I would use this test only for integer variables.
Issue created by migration from Trac.
Original creator: [email protected]
Original creation time: 2006-07-18 18:26:12
Assignee: somebody
Version:
Hello,
I am trying to build Bcp on Windows (MSVC++), but now using the svn code just the way I downloaded it. I had a problem in the file BCPconfig.h, line 53.
/* a few things that exists under unix, but not under windows */
#include <Windows.h>
#define gethostname(c, l) { DWORD cnlen = l; GetComputerName(c, &cnlen); }
#include <process.h>
My suggestion would be enclose those lines in a #ifndef, so that there is no need to change the code when working on Windows.
An addition, when I checked out the BCP project I got the file OsiCpxSolverInterface.hpp in folder E:\MVSProjects\COIN_svn\Bcp\Osi\src\OsiClp (OSi CLP folder), but I think this file was not suppose be there.
Thanks and congratulations for the nice work,
Eduardo.
Issue created by migration from Trac.
Original creator: fmargot
Original creation time: 2009-06-17 08:18:41
Assignee: somebody
Version:
When compiling CoinUtils from Bcp/stable/1.1 on a 64 bits machine with Fedora 11 and gcc version 4.4.0 20090506 (Red Hat 4.4.0-4) (GCC), I get:
../../../CoinUtils/src/CoinFactorization.hpp:725: error: there are no arguments to 'printf' that depend on a template parameter, so a declaration of 'printf' must be available ../../../CoinUtils/src/CoinFactorization.hpp:725: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
The line in question is the printf() line in:
if ( l + numberInPivotColumn > lengthAreaL_ ) {
//need more memory
printf("more memory needed in middle of invert\n");
return false;
}
After commenting out this printf line, there are additional errors that can be fixed by including stdio.h in file CoinUtils/CoinParamUtils.cpp.
Issue created by migration from Trac.
Original creator: fmargot
Original creation time: 2006-12-26 14:09:49
Assignee: somebody
Version:
This is for the tar ball BCP-1.0.0, but the code in the stable version looks similar.
It seems that the counting of processed nodes when BCP hits the time limit is incorrect. I get:
TM: Time has ran out.
TM: Best lower bound in this phase: 17.000000
WARNING! processed != p->search_tree.processed()
WARNING! Please file a bug report.
When printing these values, I get:
processed: 2195 p->search_tree.processed(): 1329
This happens using stein27.mps with an upper bound of 18.1, a time limit of 10 seconds and BCP in Branch-and-Bound (using best bound) mode.
This comes from BCP_tm_user::display_final_information(). Moreover, when using
BCP_RemoveExploredBranches 1
it happens that in the loop of BCP_tm_user::display_final_information()
starting with
for (BCP_vec<BCP_tm_node*>::iterator node = p->search_tree.begin();
node != p->search_tree.end();
++node) {
(around line 291 in BCP_tm_user.cpp), *node is sometimes NULL, creating a crash. I fixed this by adding at the beginning of the loop:
if(*node == NULL) {
continue;
}
I am not sure if this is the best fix.
Issue created by migration from Trac.
Original creator: Gassmann
Original creation time: 2009-05-21 19:55:00
Assignee: somebody
Version:
The following error shows up when I configure OS under Ubuntu:
configure: WARNING: sys/sysinfo.h: present but cannot be compiled
configure: WARNING: sys/sysinfo.h: check for missing prerequisite headers?
configure: WARNING: sys/sysinfo.h: see the Autoconf documentation
configure: WARNING: sys/sysinfo.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/sysinfo.h: proceeding with the preprocessor's result
configure: WARNING: sys/sysinfo.h: in the future, the compiler will take precedence
configure: WARNING: ## --------------------------------------------------------- ##
configure: WARNING: ## Report this to https://projects.coin-or.org/Bcp/newticket ##
configure: WARNING: ## --------------------------------------------------------- ##
My system may be nonstandard: I am running under Vista 64, VMware Workstation 6.5.2 and
Ubuntu 64. The file system is controlled by Vista and is available to Ubuntu under the //mnt hierarchy as a linked folder.
Issue created by migration from Trac.
Original creator: @lleeoo
Original creation time: 2009-12-10 23:20:53
Assignee: somebody
Version:
From the main BCP wiki page trying to click on "BAC: A BCP based Branch-and-Cut Example by Francois Margot." leads to a broken link message saying that the document no longer exists in the current version of the repository.
Issue created by migration from Trac.
Original creator: dexter
Original creation time: 2010-01-28 14:32:35
Assignee: somebody
Version:
Dear Sir/Madam,
I tried to install Bcp by following the instructions from the INSTALL file. After downloading I did the following within my Bcp directory:
mkdir build
cd build
../configure
During configuration I got these messages:
checking sys/resource.h usability... no
checking sys/resource.h presence... yes
configure: WARNING: sys/resource.h: present but cannot be compiled
configure: WARNING: sys/resource.h: check for missing prerequisite headers?
configure: WARNING: sys/resource.h: see the Autoconf documentation
configure: WARNING: sys/resource.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/resource.h: proceeding with the preprocessor's result
configure: WARNING: sys/resource.h: in the future, the compiler will take precedence
configure: WARNING: ## --------------------------------------------------------- ##
configure: WARNING: ## Report this to https://projects.coin-or.org/Bcp/newticket ##
configure: WARNING: ## --------------------------------------------------------- ##
checking for sys/resource.h... yes
checking sys/sysinfo.h usability... no
checking sys/sysinfo.h presence... yes
configure: WARNING: sys/sysinfo.h: present but cannot be compiled
configure: WARNING: sys/sysinfo.h: check for missing prerequisite headers?
configure: WARNING: sys/sysinfo.h: see the Autoconf documentation
configure: WARNING: sys/sysinfo.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/sysinfo.h: proceeding with the preprocessor's result
configure: WARNING: sys/sysinfo.h: in the future, the compiler will take precedence
configure: WARNING: ## --------------------------------------------------------- ##
configure: WARNING: ## Report this to https://projects.coin-or.org/Bcp/newticket ##
configure: WARNING: ## --------------------------------------------------------- ##
checking for sys/sysinfo.h... yes
So I do the report ...
I've got these errors with version 1.2.2, and 1.2.3 as well on a SUSE 11.2 system. The make command was successful, but not make test (segmentation fault). Maybe, that this is related to the messages during configuration? I don't have no idea.
I checked the Autoconf documentation, but I don't have no idea what to do in this special case.
I would be grateful for any assistance you can offer.
Thank you very much in advance!
Issue created by migration from Trac.
Original creator: tuomo
Original creation time: 2009-01-16 14:59:04
Assignee: somebody
Version:
Unable to open mps input file ../../Data/Sample/exmip1.mps
apparently a nonexistent mps file is looked for in the test.
Issue created by migration from Trac.
Original creator: @svigerske
Original creation time: 2007-08-09 15:45:00
Assignee: somebody
Version:
Hi,
when using Bcp as part of CoinAll on Solaris, the configure is failing in the section related to the copying of the examples
COIN_LINK_FROM_FILELIST(test/BAC, examples/BAC/testfiles.txt)
COIN_COPY_FROM_FILELIST(examples/BAC, examples/BAC/examplefiles.txt)
COIN_COPY_FROM_FILELIST(examples/MaxCut, examples/MaxCut/examplefiles.txt)
COIN_COPY_FROM_FILELIST(examples/MCF-1, examples/MCF-1/examplefiles.txt)
COIN_COPY_FROM_FILELIST(examples/MCF-2, examples/MCF-2/examplefiles.txt)
COIN_COPY_FROM_FILELIST(examples/MCF-3, examples/MCF-3/examplefiles.txt)
The message I get in configure is:
...
checking whether this is a VPATH configuration... yes
Creating links in test/BAC ...
cat: cannot open ..../../../../code/Bcp/examples/BAC/testfiles.txt
../../code/Bcp/configure: line 21395: cd: ..../..: No such file or directory
checking which command should be used to link input files... ln -s
...
I have a directory ./code where I checked out CoinAll, and do a VPATH-configure from ./debug .
It looks like something with the path is not working correct there.
Unfortunately, I do not have the right autotools on this machine, so I did modification on Bcp/configure to get it working.
The first thing was as follows:
--- configure (revision 383)
+++ configure (working copy)
`@``@` -21367,12 +21367,12 `@``@`
updir=$t
fi
-if test -e $srcdir/examples/BAC/testfiles.txt ; then
+if test -e $srcdir/Bcp/examples/BAC/testfiles.txt ; then
echo Creating links in test/BAC ...
- fromdir=$updir/$srcdir/`dirname examples/BAC/testfiles.txt`
+ fromdir=$updir/$srcdir/`dirname Bcp/examples/BAC/testfiles.txt`
mkdir -p test/BAC
cd test/BAC
- for f in `cat $updir/$srcdir/examples/BAC/testfiles.txt` ; do
+ for f in `cat $updir/$srcdir/Bcp/examples/BAC/testfiles.txt` ; do
if test ! -e $f ; then
fdir=`dirname $f`
mkdir -p $fdir
And similar for the next parts.
Issue created by migration from Trac.
Original creator: @LouHafer
Original creation time: 2006-08-02 15:42:21
Assignee: somebody
Version:
The MaxCut build fails on any system because Vol and OsiVol are needed in the link.
Issue created by migration from Trac.
Original creator: sonya
Original creation time: 2007-11-09 18:25:35
Assignee: somebody
Version: 1.0
This is for Bcp-1.0.0.
The execution of Bcp's examples (in MPI parallel environment) fails at the end with a segmentation fault.
I think the problem is the "delete user_init" at the end of "bcp_main" function in BCP_tm_main.cpp.
Issue created by migration from Trac.
Original creator: fmargot
Original creation time: 2011-10-04 17:45:27
Assignee: somebody
Version:
Need to add
#include
at the beginning of BCP_vector.hpp to be able to compile stable/1.2 with
gcc version 4.6.0 20110509 (Red Hat 4.6.0-7) on Fedora 15. Same change required with older version of stable.
The same include must be added in CoinUtils/src/CoinSmartPtr.hpp. I have filed a ticket in CoinUtils about it, but this might be a Bcp problem.
Issue created by migration from Trac.
Original creator: fmargot
Original creation time: 2006-11-24 13:39:26
Assignee: somebody
Version: 1.0
Using the tar ball Bcp-1.0.0.tgz on Fedora 5 with gcc4.1,
make test
yields:
make[2]: Entering directory /home/prov/Bcp-1.0.0/build/Bcp/test/BAC' if g++ -DHAVE_CONFIG_H -I. -Iinclude -I../../inc -I
echo /home/prov/Bcp-1.0.0/Bcp/src/include -I
echo /home/prov/Bcp-1.0.0/Cgl/src -I
echo /home/prov/Bcp-1.0.0/Cgl/src/CglFlowCover -I
echo /home/prov/Bcp-1.0.0/Cgl/src/CglGomory -I
echo /home/prov/Bcp-1.0.0/Cgl/src/CglKnapsackCover -I
echo /home/prov/Bcp-1.0.0/Cgl/src/CglOddHole -I
echo /home/prov/Bcp-1.0.0/Cgl/src/CglProbing -I
echo /home/prov/Bcp-1.0.0/Osi/src -I
echo /home/prov/Bcp-1.0.0/Osi/src/OsiClp -I
echo /home/prov/Bcp-1.0.0/Clp/src -I
echo /home/prov/Bcp-1.0.0/build/Bcp/../Clp/inc -I
echo /home/prov/Bcp-1.0.0/CoinUtils/src -O3 -fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -MT BB_lp.o -MD -MP -MF ".deps/BB_lp.Tpo" -c -o BB_lp.o
test -f 'LP/BB_lp.cpp' || echo '../../../../Bcp/test/BAC/'LP/BB_lp.cpp; \ then mv -f ".deps/BB_lp.Tpo" ".deps/BB_lp.Po"; else rm -f ".deps/BB_lp.Tpo"; exit 1; fi In file included from /home/prov/Bcp-1.0.0/CoinUtils/src/CoinFinite.hpp:8, from /home/prov/Bcp-1.0.0/CoinUtils/src/CoinMessageHandler.hpp:15, from /home/prov/Bcp-1.0.0/Osi/src/OsiSolverInterface.hpp:9, from /home/prov/Bcp-1.0.0/Bcp/src/include/BCP_lp_user.hpp:10, from include/BB_lp.hpp:17, from LP/BB_lp.cpp:15: /home/prov/Bcp-1.0.0/CoinUtils/src/CoinUtilsConfig.h:23:30: error: config_coinutils.h: No such file or directory In file included from /home/prov/Bcp-1.0.0/CoinUtils/src/CoinMessageHandler.hpp:15, from /home/prov/Bcp-1.0.0/Osi/src/OsiSolverInterface.hpp:9, from /home/prov/Bcp-1.0.0/Bcp/src/include/BCP_lp_user.hpp:10, from include/BB_lp.hpp:17, from LP/BB_lp.cpp:15: /home/prov/Bcp-1.0.0/CoinUtils/src/CoinFinite.hpp:16:4: error: #error "don't have header file for math" /home/prov/Bcp-1.0.0/CoinUtils/src/CoinFinite.hpp: In function 'bool CoinFinite(double)': /home/prov/Bcp-1.0.0/CoinUtils/src/CoinFinite.hpp:80: error: 'DBL_MAX' was not declared in this scope make[2]: *** [BB_lp.o] Error 1 make[2]: Leaving directory
/home/prov/Bcp-1.0.0/build/Bcp/test/BAC'
make[1]: *** [test] Error 2
make[1]: Leaving directory `/home/prov/Bcp-1.0.0/build/Bcp'
make: *** [test] Error 2
Bcp-1.4.4, configuring and making and installing everything results in a framework which will not compile all but the BAC example. Platform: Debian on Intel.
The most common error is : 'BCP_pricing_status' has not been declared
Did I miss something?
Best regards
Originally posted by @baniabde2020 in #18 (comment)
Issue created by migration from Trac.
Original creator: fmargot
Original creation time: 2006-06-29 17:19:16
Assignee: somebody
Version:
Keywords: basisIsAvailable
In file BCP_lp_main_loop.cpp, around line 185:
if (BCP_lp_fix_vars(p)) {
should be
if ((BCP_lp_fix_vars(p) || (!p.lp_solver->basisIsAvailable()))) {
This is important when BCP works with Cplex and uses cut generators requiring access to the optimal basis.
This is not necessary when using Clp.
The difference is in the implementation of OsiCpx and OsiClp.
In OsiCpx, any change of bounds on the variables makes all
information about the optimal basis disappear. For OsiClp,
it remains there and can be used if primal feasibility
is not lost.
(changed by ladanyi at 2006-07-03 20:58:30)
Issue created by migration from Trac.
Original creator: tuomo
Original creation time: 2009-01-16 13:46:04
Assignee: somebody
Version:
checking out vanilla 1.2.1, configuring and making and installing everything results in a framework which will not compile all but the BAC example. Platform: Debian on Intel.
The most common error is
include/MCF3_tm.hpp:45: error: 'BCP_pricing_status' has not been declared
Did I miss something?
Best regards
Tuomo
Issue created by migration from Trac.
Original creator: awasielak
Original creation time: 2008-02-23 20:43:42
Assignee: somebody
Version:
Bcp version 1.1.2
Running `make distclean' leaves behind the following files/directories:
Bcp/test/BAC/bac.lp
Bcp/test/BAC/bac.mps
Bcp/test/BAC/bac.pdf
Bcp/test/BAC/bb.par
Bcp/test/BAC/include
Bcp/test/BAC/LP
Bcp/test/BAC/Member
Bcp/test/BAC/TM
It also erroneously removes Bcp/examples
directory. If you try to run `./configure' again, it will fail:
[snip]
config.status: error: cannot find input file: examples/BAC/Makefile.in
configure: error: /bin/bash './configure' failed for Bcp
Here is a patch to fix the latter problem:
diff -urNad coinor-coinall-1.0.0~/Bcp/Makefile.am coinor-coinall-1.0.0/Bcp/Makefile.am
--- coinor-coinall-1.0.0~/Bcp/Makefile.am 2007-02-02 08:48:04.000000000 -0700
+++ coinor-coinall-1.0.0/Bcp/Makefile.am 2008-02-23 12:50:33.000000000 -0700
`@``@` -86,7 +86,6 `@``@`
for t in $(TESTS); do \
(if test -r test/$$t/Makefile; then cd test/$$t; $(MAKE) distclean; fi); \
done
- rm -rf examples
.PHONY: test unitTest
diff -urNad coinor-coinall-1.0.0~/Bcp/Makefile.in coinor-coinall-1.0.0/Bcp/Makefile.in
--- coinor-coinall-1.0.0~/Bcp/Makefile.in 2007-12-08 11:22:25.000000000 -0700
+++ coinor-coinall-1.0.0/Bcp/Makefile.in 2008-02-23 12:50:33.000000000 -0700
`@``@` -843,7 +843,6 `@``@`
for t in $(TESTS); do \
(if test -r test/$$t/Makefile; then cd test/$$t; $(MAKE) distclean; fi); \
done
- rm -rf examples
.PHONY: test unitTest
Issue created by migration from Trac.
Original creator: tuomo
Original creation time: 2009-01-16 15:03:33
Assignee: somebody
Version:
configure fails to produce the Makefiles in the Applications directory.
Issue created by migration from Trac.
Original creator: @LouHafer
Original creation time: 2006-08-02 15:52:56
Assignee: somebody
Version:
Makefiles/Makefile.CYGWIN sets the -mno-cygwin option. This apparently leaves __CYGWIN__
undefined. BCP_cygwin.hpp is definitely not included from BCP_os.hpp. Apparently the requirements for BCP_msvc.hpp are not satisfied either. None of the symbols are defined and the build fails.
Removing -mno-cygwin gives a successful build, but isn't really a fix.
Issue created by migration from Trac.
Original creator: fmargot
Original creation time: 2008-12-19 11:52:51
Assignee: somebody
Version:
When configuring stable/Bcp-1.1 under Fedora 10, I get:
checking sys/resource.h presence... yes
configure: WARNING: sys/resource.h: present but cannot be compiled
configure: WARNING: sys/resource.h: check for missing prerequisite headers?
configure: WARNING: sys/resource.h: see the Autoconf documentation
configure: WARNING: sys/resource.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/resource.h: proceeding with the preprocessor's result
configure: WARNING: sys/resource.h: in the future, the compiler will take precedence
configure: WARNING: ## --------------------------------------------------------- ##
configure: WARNING: ## Report this to https://projects.coin-or.org/Bcp/newticket ##
configure: WARNING: ## --------------------------------------------------------- ##
checking for sys/resource.h... yes
Issue created by migration from Trac.
Original creator: fmargot
Original creation time: 2006-06-29 16:57:58
Assignee: somebody
Version:
Keywords: verbosity
In BCP_lp_branching.cpp, around line 304:
printf("\nLP: Starting strong branching:\n\n");
should be:
if (p.param(BCP_lp_par::LpVerb_StrongBranchResult)) {
printf("\nLP: Starting strong branching:\n\n");
}
Issue created by migration from Trac.
Original creator: dan.gordon
Original creation time: 2006-06-27 06:54:54
Assignee: somebody
Version:
Keywords: build make configure
When trying to run configure under mac OS X v. 10.4, I encounter an error due to the fact that there is no Makefile.in
file in Bcp/examples/MCF. I'd guess that it was just accidentally not checked in to the subversion repository.
Issue created by migration from Trac.
Original creator: @svigerske
Original creation time: 2008-03-07 20:45:43
Assignee: somebody
Version:
Hi,
compiling Bonmin/trunk on Windows under Cygwin with Intel compilers fails with
...\Bonmin\trunk\Bcp\src\include\BCP_process.hpp(47): catastrophic error: could not open source file "sys/time.h"
#include <sys/time.h>
There is AC_HEADER_TIME macro that might be helpful:
http://www.gnu.org/software/autoconf/manual/autoconf-2.57/html_chapter/autoconf_5.html#SEC50
Best,
Stefan
Issue created by migration from Trac.
Original creator: [email protected]
Original creation time: 2006-10-10 16:42:41
Assignee: somebody
Version:
I down loaded the coin-Bcp package via svn and had no problem in configuring.
When i used the make command I had errors in compiling the src directory. The error msg in the cygwin is as follows:
Making all in src
make[2]: Entering directory /cygdrive/c/tinyos/cygwin/bin/bcp/build/CoinUtils/ rc' if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I
cyg
ath -w ../../../CoinUtils/src-I../inc -O3 -fomit-frame-pointer -mno-cygwi -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast- ual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -MT CoinIndexedVector. o -MD -MP -MF ".deps/CoinIndexedVector.Tpo" -c -o CoinIndexedVector.lo ../../.. CoinUtils/src/CoinIndexedVector.cpp; \ then mv -f ".deps/CoinIndexedVector.Tpo" ".deps/CoinIndexedVector.Plo"; else rm -f ".deps/CoinIndexedVector.Tpo"; exit 1; fi g++ -DHAVE_CONFIG_H -I. -Ic:\\tinyos\\cygwin\\bin\\bcp\\CoinUtils\\src -I../in -O3 -fomit-frame-pointer -mno-cygwin -pipe -DNDEBUG -pedantic-errors -Wimplici -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings Wconversion -MT CoinIndexedVector.lo -MD -MP -MF .deps/CoinIndexedVector.Tpo -c ../../../CoinUtils/src/CoinIndexedVector.cpp -o CoinIndexedVector.o ../../../CoinUtils/src/CoinIndexedVector.cpp: In member function
void
CoinIndexedVector::reserve(int)':
../../../CoinUtils/src/CoinIndexedVector.cpp:543: int64_t' undeclared (first use this function) ../../../CoinUtils/src/CoinIndexedVector.cpp:543: (Each undeclared identifier is reported only once for each function it appears in.) ../../../CoinUtils/src/CoinIndexedVector.cpp:543: parse error before
=' token
../../../CoinUtils/src/CoinIndexedVector.cpp:545: iBottom' undeclared (first use this function) ../../../CoinUtils/src/CoinIndexedVector.cpp: In member function
int
CoinIndexedVector::cleanAndPackSafe(double)':
../../../CoinUtils/src/CoinIndexedVector.cpp:1388: int64_t' undeclared (first use this function) ../../../CoinUtils/src/CoinIndexedVector.cpp:1388: parse error before
=' token
../../../CoinUtils/src/CoinIndexedVector.cpp:1393: xx' undeclared (first use this function) ../../../CoinUtils/src/CoinIndexedVector.cpp:1393: parse error before
>' token
make[2]: *** [CoinIndexedVector.lo] Error 1
make[2]: Leaving directory /cygdrive/c/tinyos/cygwin/bin/bcp/build/CoinUtils/s c' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory
/cygdrive/c/tinyos/cygwin/bin/bcp/build/CoinUtils'
make: *** [all-recursive] Error 1
The errors differ when doing the installations of different version..
At times the error is that it cant link the files..
Could you please specify if there are any changes that are to be
made to the make files so that errors do not occur
Issue created by migration from Trac.
Original creator: dan.gordon
Original creation time: 2006-06-27 08:34:12
Assignee: somebody
Version:
Keywords: make build compile mac OSX
I get a compile error when compiling the file Bcp/src/include/BCP_os.hpp
under mac OS X 10.4 / Darwin:
/usr/include/sys/resource.h:218: error: declaration does not declare anything
make: *** [BCP_cg_main.lo] Error 1
See file: Bcp/src/include/BCP_os.hpp
:
#if HAVE_SYS_RESOURCE_H
# include <sys/resources.h>
#else
# define setpriority(x,y,z)
#endif
Firstly, when I build, HAVE_SYS_RESOURCE_H is incorrectly undefined. I think this is due to a bug in autoconf. I get around this by manually export
ing the CXXDEFS
environment variable to "-DHAVE_SYS_RESOURCE_H
" prior to running configure.
Secondly, I think # include <sys/resources.h>
should be changed to # include <sys/resource.h>
in the code quoted above (at least, this is the case for Darwin / Mac OS X 10.4).
Making this change gets rid of the compile error. However, note that the code also doesn't compile for me even when HAVE_SYS_RESOURCE_H
is not defined. This is because, on my system, resource.h
gets #include
d via a different dependency, and its definition of setpriority
is messed up by the code above. So I think a better plan is to remove the whole block of code quoted above from Bcp/src/include/BCP_os.hpp
, and change line 33 of Bcp/src/include/BCP_os.hpp
to
#ifdef HAVE_SYS_RESOURCE_H
setpriority(PRIO_PROCESS, 0, p.par.entry(BCP_cg_par::NiceLevel));
#endif
This successfully compiles on my system.
Issue created by migration from Trac.
Original creator: dexter
Original creation time: 2010-01-29 16:22:01
Assignee: somebody
Version:
There are very lot warnings when making Bcp. Is there any recommended compiler version?
Used g++ 4.3.2 ...
Issue created by migration from Trac.
Original creator: compiler
Original creation time: 2011-10-04 17:44:32
Assignee: somebody
Version: 2.0
Hi,
I am using Mac OS X 10.6.8 (10K549) with gcc4.3 +gfortran (Not directly related to this problem but I could not compile the code with gcc45 and gcc46). As instructed in the configure.site file, I have declared the cplex include and library directories as follows:
with_cplex_incdir='/CPLEX/cplex/include/ilcplex'
with_cplex_lib='-L/CPLEX/cplex/lib/x86-64_darwin9_gcc4.0/static_pic -lcplex -lpthread'
It says it can't compile the simple test code that calls CPXgetstat. I don't think the problem is a cplex licence problem because the ILM file path is a global env var on my system.
I couldn't attached the configure log, so here is a snapshot:
.....
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.16.0... yes
checking for COIN-OR package CoinUtils... yes: 2.8.1
checking for COIN-OR package Glpk... not given: No package 'coinglpk' found
checking for COIN-OR package SoPlex... not given: No package 'coinsoplex' found
checking for COIN-OR package Sample... not given: No package 'coindatasample' found
checking for COIN-OR package Netlib... not given: No package 'coindatanetlib' found
checking if user provides library for Cplex... yes
checking whether symbol CPXgetstat is available with CPX... no
configure: error: Cannot find symbol(s) CPXgetstat with CPX
configure: error: /bin/sh '../../Osi/configure' failed for Osi
Thanks,
Serdar Karademir
Issue created by migration from Trac.
Original creator: @andrea5w
Original creation time: 2008-07-27 23:21:15
Assignee: somebody
Version:
Creating copies in examples/BAC ...
cp: /a/mathp6/homes/mathp6.local/andreasw/COIN-svn/CoinAll/stable/BSP/Bcp/examples/BAC/bac.pdf: No such file or directory
Creating copies in examples/MaxCut ...
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.