COIN-OR::LEMON - Graph Library

Changeset 1339:26a88d12d1a6 in lemon-0.x


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

A little has been done. Some important questions arised.

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..
     1CXXFLAGS = -Wall -ggdb --no-inline -I../../.. -I.. -I/usr/local/cplex/cplex75/include
    22
    33all: lp_sample_cplex
    44
    55clean:
    6         rm lp_test *.o
     6        rm lp_test lp_sample_cplex lp_sample *.o
    77
    88lp_base.o: ../../../lemon/lp_base.cc ../../../lemon/lp_base.h
     
    2424        $(CXX) -o $@ $^ -lglpk
    2525
    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
     26lp_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  
    110110  {
    111111    //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);
    113132  }
    114133 
  • src/work/athos/lp/lp_cplex.h

    r1319 r1339  
    2323#include <lemon/lp_base.h>
    2424extern "C" {
    25 #include "ilcplex/cplex.h"
     25#include <ilcplex/cplex.h>
    2626}
    2727
Note: See TracChangeset for help on using the changeset viewer.