#6502: [with patch, needs review] Linear Program Solver and Mixed Integer
Program
Solver in Sage
-------------------------+--------------------------------------------------
Reporter: ncohen | Owner: jkantor
Type: enhancement | Status: new
Priority: major | Milestone:
Component: numerical | Keywords:
Reviewer: | Author:
Merged: |
-------------------------+--------------------------------------------------
Comment(by wdj):
I usually debug by just running sage -t with the file open in an editor
until it passes:-)
Am I to apply MIP1 then MIP2? If so, there was a problem compiling (amd64,
ubuntu 9.04):
{{{
w...@hera:~/sagefiles/sage-4.1.1.alpha1$ ./sage -b
----------------------------------------------------------
sage: Building and installing modified Sage library files.
Installing c_lib
scons: `install' is up to date.
Updating Cython code....
Building modified file sage/numerical/mip.pyx.
python `which cython` --embed-positions --incref-local-binop
-I/home/wdj/sagefiles/sage-4.1.1.alpha1/devel/sage-OR -o
sage/numerical/mip.cpp sage/numerical/mip.pyx
sage/numerical/mip.pyx -->
/home/wdj/sagefiles/sage-4.1.1.alpha1/local//lib/python/site-
packages//sage/numerical/mip.pyx
Time to execute 1 commands: 0.891119003296 seconds
Finished compiling Cython code (time = 1.45167207718 seconds)
running install
running build
running build_py
copying sage/numerical/all.py -> build/lib.linux-x86_64-2.6/sage/numerical
running build_ext
building 'sage.numerical.mip' extension
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
-fPIC -Ilocal/include/
-I/home/wdj/sagefiles/sage-4.1.1.alpha1/local//include
-I/home/wdj/sagefiles/sage-4.1.1.alpha1/local//include/csage
-I/home/wdj/sagefiles/sage-4.1.1.alpha1/devel//sage/sage/ext
-I/home/wdj/sagefiles/sage-4.1.1.alpha1/local/include/python2.6 -c
sage/numerical/mip.cpp -o build/temp.linux-x86_64-2.6/sage/numerical/mip.o
-w
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
sage/numerical/mip.cpp:132:38: error: ../../local/include/glpk.h: No such
file or directory
sage/numerical/mip.cpp: In function ‘PyObject*
__pyx_pf_4sage_9numerical_3mip_3MIP_solveGLPK(PyObject*, PyObject*,
PyObject*)’:
sage/numerical/mip.cpp:2777: error: ‘glp_prob’ was not declared in this
scope
sage/numerical/mip.cpp:2777: error: ‘__pyx_v_lp’ was not declared in this
scope
sage/numerical/mip.cpp:2787: error: ‘glp_iocp’ was not declared in this
scope
sage/numerical/mip.cpp:2787: error: ‘__pyx_v_iocp’ was not declared in
this scope
sage/numerical/mip.cpp:2985: error: ‘glp_create_prob’ was not declared in
this scope
sage/numerical/mip.cpp:2998: error: ‘glp_add_rows’ was not declared in
this scope
sage/numerical/mip.cpp:3011: error: ‘glp_add_cols’ was not declared in
this scope
sage/numerical/mip.cpp:3098: error: ‘glp_set_obj_coef’ was not declared in
this scope
sage/numerical/mip.cpp:3241: error: ‘GLP_DB’ was not declared in this
scope
sage/numerical/mip.cpp:3241: error: ‘glp_set_col_bnds’ was not declared in
this scope
sage/numerical/mip.cpp:3330: error: ‘GLP_UP’ was not declared in this
scope
sage/numerical/mip.cpp:3330: error: ‘glp_set_col_bnds’ was not declared in
this scope
sage/numerical/mip.cpp:3419: error: ‘GLP_LO’ was not declared in this
scope
sage/numerical/mip.cpp:3419: error: ‘glp_set_col_bnds’ was not declared in
this scope
sage/numerical/mip.cpp:3450: error: ‘GLP_FR’ was not declared in this
scope
sage/numerical/mip.cpp:3450: error: ‘glp_set_col_bnds’ was not declared in
this scope
sage/numerical/mip.cpp:3764: error: ‘GLP_FX’ was not declared in this
scope
sage/numerical/mip.cpp:3764: error: ‘glp_set_row_bnds’ was not declared in
this scope
sage/numerical/mip.cpp:3791: error: ‘GLP_DB’ was not declared in this
scope
sage/numerical/mip.cpp:3791: error: ‘glp_set_row_bnds’ was not declared in
this scope
sage/numerical/mip.cpp:3846: error: ‘GLP_UP’ was not declared in this
scope
sage/numerical/mip.cpp:3846: error: ‘glp_set_row_bnds’ was not declared in
this scope
sage/numerical/mip.cpp:3899: error: ‘GLP_LO’ was not declared in this
scope
sage/numerical/mip.cpp:3899: error: ‘glp_set_row_bnds’ was not declared in
this scope
sage/numerical/mip.cpp:3912: error: ‘GLP_FR’ was not declared in this
scope
sage/numerical/mip.cpp:3912: error: ‘glp_set_row_bnds’ was not declared in
this scope
sage/numerical/mip.cpp:3957: error: ‘GLP_MIN’ was not declared in this
scope
sage/numerical/mip.cpp:3957: error: ‘glp_set_obj_dir’ was not declared in
this scope
sage/numerical/mip.cpp:3969: error: ‘GLP_MAX’ was not declared in this
scope
sage/numerical/mip.cpp:3969: error: ‘glp_set_obj_dir’ was not declared in
this scope
sage/numerical/mip.cpp:4059: error: ‘GLP_IV’ was not declared in this
scope
sage/numerical/mip.cpp:4059: error: ‘glp_set_col_kind’ was not declared in
this scope
sage/numerical/mip.cpp:4108: error: ‘GLP_BV’ was not declared in this
scope
sage/numerical/mip.cpp:4108: error: ‘glp_set_col_kind’ was not declared in
this scope
sage/numerical/mip.cpp:4136: error: ‘GLP_CV’ was not declared in this
scope
sage/numerical/mip.cpp:4136: error: ‘glp_set_col_kind’ was not declared in
this scope
sage/numerical/mip.cpp:4156: error: ‘glp_load_matrix’ was not declared in
this scope
sage/numerical/mip.cpp:4165: error: expected type-specifier before
‘glp_iocp’
sage/numerical/mip.cpp:4165: error: expected `;' before ‘glp_iocp’
sage/numerical/mip.cpp:4174: error: ‘glp_init_iocp’ was not declared in
this scope
sage/numerical/mip.cpp:4183: error: ‘GLP_ON’ was not declared in this
scope
sage/numerical/mip.cpp:4205: error: ‘GLP_MSG_OFF’ was not declared in this
scope
sage/numerical/mip.cpp:4229: error: ‘GLP_MSG_ERR’ was not declared in this
scope
sage/numerical/mip.cpp:4253: error: ‘GLP_MSG_ON’ was not declared in this
scope
sage/numerical/mip.cpp:4265: error: ‘GLP_MSG_ALL’ was not declared in this
scope
sage/numerical/mip.cpp:4276: error: ‘glp_intopt’ was not declared in this
scope
sage/numerical/mip.cpp:4285: error: ‘glp_mip_obj_val’ was not declared in
this scope
sage/numerical/mip.cpp:4314: error: ‘glp_delete_prob’ was not declared in
this scope
sage/numerical/mip.cpp:4408: error: ‘glp_mip_col_val’ was not declared in
this scope
sage/numerical/mip.cpp:4422: error: ‘glp_delete_prob’ was not declared in
this scope
error: command 'gcc' failed with exit status 1
sage: There was an error installing modified sage library code.
real 0m3.367s
user 0m2.880s
sys 0m0.428s
}}}
Do you know what this means?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6502#comment:16>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---