#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):
There was also this compiling error:
{{{
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 sage/numerical/mip.pyx because it depends on
../../local/include/glpk.h.
python `which cython` --embed-positions --incref-local-binop
-I/home/wdj/sagefiles/sage-4.1.1.alpha1/devel/sage-OR2 -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: 1.12334299088 seconds
Finished compiling Cython code (time = 2.04412698746 seconds)
running install
running build
running build_py
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: In function ‘PyObject*
__pyx_pf_4sage_9numerical_3mip_3MIP_solveGLPK(PyObject*, PyObject*,
PyObject*)’:
sage/numerical/mip.cpp:2785: error: ‘glp_prob’ was not declared in this
scope
sage/numerical/mip.cpp:2785: error: ‘__pyx_v_lp’ was not declared in this
scope
sage/numerical/mip.cpp:2795: error: ‘glp_iocp’ was not declared in this
scope
sage/numerical/mip.cpp:2795: error: ‘__pyx_v_iocp’ was not declared in
this scope
sage/numerical/mip.cpp:2993: error: ‘glp_create_prob’ was not declared in
this scope
sage/numerical/mip.cpp:3006: error: ‘glp_add_rows’ was not declared in
this scope
sage/numerical/mip.cpp:3019: error: ‘glp_add_cols’ was not declared in
this scope
sage/numerical/mip.cpp:3106: error: ‘glp_set_obj_coef’ was not declared in
this scope
sage/numerical/mip.cpp:3249: error: ‘GLP_DB’ was not declared in this
scope
sage/numerical/mip.cpp:3249: error: ‘glp_set_col_bnds’ was not declared in
this scope
sage/numerical/mip.cpp:3338: error: ‘GLP_UP’ was not declared in this
scope
sage/numerical/mip.cpp:3338: error: ‘glp_set_col_bnds’ was not declared in
this scope
sage/numerical/mip.cpp:3427: error: ‘GLP_LO’ was not declared in this
scope
sage/numerical/mip.cpp:3427: error: ‘glp_set_col_bnds’ was not declared in
this scope
sage/numerical/mip.cpp:3458: error: ‘GLP_FR’ was not declared in this
scope
sage/numerical/mip.cpp:3458: error: ‘glp_set_col_bnds’ was not declared in
this scope
sage/numerical/mip.cpp:3772: error: ‘GLP_FX’ was not declared in this
scope
sage/numerical/mip.cpp:3772: error: ‘glp_set_row_bnds’ was not declared in
this scope
sage/numerical/mip.cpp:3799: error: ‘GLP_DB’ was not declared in this
scope
sage/numerical/mip.cpp:3799: error: ‘glp_set_row_bnds’ was not declared in
this scope
sage/numerical/mip.cpp:3854: error: ‘GLP_UP’ was not declared in this
scope
sage/numerical/mip.cpp:3854: error: ‘glp_set_row_bnds’ was not declared in
this scope
sage/numerical/mip.cpp:3907: error: ‘GLP_LO’ was not declared in this
scope
sage/numerical/mip.cpp:3907: error: ‘glp_set_row_bnds’ was not declared in
this scope
sage/numerical/mip.cpp:3920: error: ‘GLP_FR’ was not declared in this
scope
sage/numerical/mip.cpp:3920: error: ‘glp_set_row_bnds’ was not declared in
this scope
sage/numerical/mip.cpp:3965: error: ‘GLP_MIN’ was not declared in this
scope
sage/numerical/mip.cpp:3965: error: ‘glp_set_obj_dir’ was not declared in
this scope
sage/numerical/mip.cpp:3977: error: ‘GLP_MAX’ was not declared in this
scope
sage/numerical/mip.cpp:3977: error: ‘glp_set_obj_dir’ was not declared in
this scope
sage/numerical/mip.cpp:4067: error: ‘GLP_IV’ was not declared in this
scope
sage/numerical/mip.cpp:4067: error: ‘glp_set_col_kind’ was not declared in
this scope
sage/numerical/mip.cpp:4116: error: ‘GLP_BV’ was not declared in this
scope
sage/numerical/mip.cpp:4116: error: ‘glp_set_col_kind’ was not declared in
this scope
sage/numerical/mip.cpp:4144: error: ‘GLP_CV’ was not declared in this
scope
sage/numerical/mip.cpp:4144: error: ‘glp_set_col_kind’ was not declared in
this scope
sage/numerical/mip.cpp:4164: error: ‘glp_load_matrix’ was not declared in
this scope
sage/numerical/mip.cpp:4173: error: expected type-specifier before
‘glp_iocp’
sage/numerical/mip.cpp:4173: error: expected `;' before ‘glp_iocp’
sage/numerical/mip.cpp:4182: error: ‘glp_init_iocp’ was not declared in
this scope
sage/numerical/mip.cpp:4191: error: ‘GLP_ON’ was not declared in this
scope
sage/numerical/mip.cpp:4213: error: ‘GLP_MSG_OFF’ was not declared in this
scope
sage/numerical/mip.cpp:4237: error: ‘GLP_MSG_ERR’ was not declared in this
scope
sage/numerical/mip.cpp:4261: error: ‘GLP_MSG_ON’ was not declared in this
scope
sage/numerical/mip.cpp:4273: error: ‘GLP_MSG_ALL’ was not declared in this
scope
sage/numerical/mip.cpp:4284: error: ‘glp_intopt’ was not declared in this
scope
sage/numerical/mip.cpp:4293: error: ‘glp_mip_obj_val’ was not declared in
this scope
sage/numerical/mip.cpp:4322: error: ‘glp_delete_prob’ was not declared in
this scope
sage/numerical/mip.cpp:4416: error: ‘glp_mip_col_val’ was not declared in
this scope
sage/numerical/mip.cpp:4430: 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 0m6.324s
user 0m3.516s
sys 0m0.604s
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6502#comment:22>
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
-~----------~----~----~----~------~----~------~--~---