COIN-OR::LEMON - Graph Library

Changeset 1314:9269c76551cf in lemon-0.x


Ignore:
Timestamp:
04/07/05 11:42:31 (15 years ago)
Author:
athos
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1753
Message:

New functions in lp_glpk.cc. Sample file: lp_sample.cc.

Location:
src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/lp_glpk.cc

    r1312 r1314  
    258258  LpGlpk::Value LpGlpk::_getPrimalValue()
    259259  {
    260     return 0;
     260    return lpx_get_obj_val(lp);
    261261  }
    262262 
     
    291291  void LpGlpk::_setMax()
    292292  {
    293   }
     293      lpx_set_obj_dir(lp, LPX_MAX);
     294   }
    294295  void LpGlpk::_setMin()
    295296  {
    296   }
     297      lpx_set_obj_dir(lp, LPX_MIN);
     298   }
    297299
    298300 
  • src/work/athos/lp/Makefile

    r1295 r1314  
    11CXXFLAGS = -Wall -ggdb --no-inline -I../../..
    22
    3 all: lp_test
     3all: lp_sample
    44
    55clean:
    66        rm lp_test *.o
    77
    8 lp_base.o: lp_base.cc lp_base.h lin_expr.h
     8lp_base.o: ../../../lemon/lp_base.cc ../../../lemon/lp_base.h lin_expr.h
     9
    910lp_solver_skeleton.o: lp_solver_skeleton.cc lp_solver_skeleton.h lp_base.h \
    1011                lin_expr.h
    11 lp_glpk.o: lp_glpk.cc lp_glpk.h lp_base.h \
    12                 lin_expr.h
    13 lp_test.o: lp_test.cc lp_base.h lin_expr.h lp_solver_skeleton.h lp_base.h \
    14                 lin_expr.h
    1512
    16 lp_test: lp_test.o lp_base.o lp_solver_skeleton.o lp_glpk.o
     13lp_glpk.o: ../../../lemon/lp_glpk.cc ../../../lemon/lp_glpk.h ../../../lemon/lp_base.h lin_expr.h
     14
     15
     16lp_sample.o: lp_sample.cc
     17
     18lp_sample: lp_sample.o lp_base.o lp_glpk.o
    1719        $(CXX) -o $@ $^ -lglpk
     20
  • src/work/athos/makefile

    r671 r1314  
    1 BINARIES = bfs_test min_cost_flow
     1BINARIES = lp_sample
    22INCLUDEDIRS= -I../.. -I.. -I../{athos,klao,marci,jacint,alpar,johanna,akos}
    33include ../makefile
Note: See TracChangeset for help on using the changeset viewer.