Changeset 1339:26a88d12d1a6 in lemon-0.x for src/work/athos/lp
- Timestamp:
- 04/11/05 17:46:14 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1778
- Location:
- src/work/athos/lp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/athos/lp/Makefile
r1319 r1339 1 CXXFLAGS = -Wall -ggdb --no-inline -I../../.. -I.. 1 CXXFLAGS = -Wall -ggdb --no-inline -I../../.. -I.. -I/usr/local/cplex/cplex75/include 2 2 3 3 all: lp_sample_cplex 4 4 5 5 clean: 6 rm lp_test *.o6 rm lp_test lp_sample_cplex lp_sample *.o 7 7 8 8 lp_base.o: ../../../lemon/lp_base.cc ../../../lemon/lp_base.h … … 24 24 $(CXX) -o $@ $^ -lglpk 25 25 26 lp_sample_cplex: lp_sample_cplex.o lp_base.o lp_glpk.o 27 $(CXX) $(CXXFLAGS) -I/usr/local/cplex/cplex75/include -o $@ $^ -L/usr/local/cplex/cplex75/lib/i86_linux2_glibc2.2_gcc3.0/static_pic_mt -lcplex -lm -lpthread 26 lp_sample_cplex: lp_sample_cplex.o lp_base.o lp_cplex.o 27 $(CXX) $(CXXFLAGS) -o $@ $^ -L/usr/local/cplex/cplex75/lib/i86_linux2_glibc2.2_gcc3.0/static_pic_mt -lcplex -lm -lpthread 28 29 # $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^ -
src/work/athos/lp/lp_cplex.cc
r1319 r1339 110 110 { 111 111 //TODO Ezt kell meg megirni 112 // Value lo=CPX 112 //type of the problem 113 char sense[1]; 114 status = CPXgetsense (env, lp, sense, i, i); 115 Value rhs[1]; 116 status = CPXgetrhs (env, lp, rhs, i, i); 117 118 switch (sense[0]) { 119 case 'L'://<= constraint 120 break; 121 case 'E'://= constraint 122 break; 123 case 'G'://>= constraint 124 break; 125 case 'R'://ranged constraint 126 break; 127 default: ; 128 //FIXME error 129 } 130 131 status = CPXchgcoef (env, lp, i, -2, value_rng); 113 132 } 114 133 -
src/work/athos/lp/lp_cplex.h
r1319 r1339 23 23 #include <lemon/lp_base.h> 24 24 extern "C" { 25 #include "ilcplex/cplex.h"25 #include <ilcplex/cplex.h> 26 26 } 27 27
Note: See TracChangeset
for help on using the changeset viewer.