COIN-OR::LEMON - Graph Library

Changeset 1153:4b0468de3a31 in lemon-0.x for src/work/marci/lp


Ignore:
Timestamp:
02/17/05 16:14:13 (20 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1554
Message:

if you have a nuclear power plant and wanna compute small magic squares, then let's do it

Location:
src/work/marci/lp
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • src/work/marci/lp/lp_solver_base.h

    r1152 r1153  
    620620    /// \e
    621621    virtual void _setColInt(int i) = 0;
     622    /// \e
     623    virtual _Value _getMIPPrimal(int i) = 0;
    622624  public:
    623625    /// \e
     
    628630    void setColInt(Col col) {
    629631      _setColInt(col_iter_map[col]);
     632    }
     633    /// \e
     634    _Value getMIPPrimal(Col col) {
     635      return _getMIPPrimal(col_iter_map[col]);
    630636    }
    631637    //@}
     
    10971103  protected:
    10981104    /// \e
    1099     void _setColCont(int i) {lpx_set_col_kind(lp, i, LPX_CV); }
    1100     /// \e
    1101     void _setColInt(int i) {lpx_set_col_kind(lp, i, LPX_IV); }
     1105    void _setColCont(int i) { lpx_set_col_kind(lp, i, LPX_CV); }
     1106    /// \e
     1107    void _setColInt(int i) { lpx_set_col_kind(lp, i, LPX_IV); }
     1108    /// \e
     1109    double _getMIPPrimal(int i) { return lpx_mip_col_val(lp, i); }
    11021110  };
    11031111 
  • src/work/marci/lp/makefile

    r1104 r1153  
    66LDFLAGS  =  -lglpk#-lcplex -lm -lpthread -lilocplex -L/usr/local/cplex/cplex75/lib/i86_linux2_glibc2.2_gcc3.0/static_mt# -L$(GLPKROOT)/lib
    77
    8 BINARIES = max_flow_expression expression_test max_flow_by_lp# sample sample2 sample11 sample15
     8BINARIES = magic_square max_flow_expression expression_test max_flow_by_lp# sample sample2 sample11 sample15
    99
    1010#include ../makefile
Note: See TracChangeset for help on using the changeset viewer.