lemon/lp_glpk.cc
changeset 2618 6aa6fcaeaea5
parent 2591 3b4d5bc3b4fb
child 2622 fa2877651022
equal deleted inserted replaced
30:ac72b49e7cf7 31:5466c60901f4
    87 	LEMON_glp(set_col_bnds)(lp,i,
    87 	LEMON_glp(set_col_bnds)(lp,i,
    88 				LEMON_glp(get_col_type)(glp.lp,i),
    88 				LEMON_glp(get_col_type)(glp.lp,i),
    89 				LEMON_glp(get_col_lb)(glp.lp,i),
    89 				LEMON_glp(get_col_lb)(glp.lp,i),
    90 				LEMON_glp(get_col_ub)(glp.lp,i));
    90 				LEMON_glp(get_col_ub)(glp.lp,i));
    91       }
    91       }
       
    92     rows = glp.rows;
       
    93     cols = glp.cols;
    92   }
    94   }
    93   
    95   
    94   LpGlpk::~LpGlpk() {
    96   LpGlpk::~LpGlpk() {
    95     LEMON_glp(delete_prob)(lp);
    97     LEMON_glp(delete_prob)(lp);
    96   }
    98   }
   103   }
   105   }
   104 
   106 
   105   ///\e
   107   ///\e
   106 
   108 
   107 
   109 
   108   LpSolverBase &LpGlpk::_newLp()
   110   LpSolverBase* LpGlpk::_newLp()
   109   {
   111   {
   110     LpGlpk* newlp=new LpGlpk;
   112     LpGlpk* newlp = new LpGlpk;
   111     return *newlp;
   113     return newlp;
   112   }
   114   }
   113   
   115   
   114   ///\e
   116   ///\e
   115 
   117 
   116   LpSolverBase &LpGlpk::_copyLp()
   118   LpSolverBase* LpGlpk::_copyLp()
   117   {
   119   {
   118     LpGlpk* newlp=new LpGlpk(*this);
   120     LpGlpk *newlp = new LpGlpk(*this);
   119     return *newlp;
   121     return newlp;
   120   }
   122   }
   121 
   123 
   122   int LpGlpk::_addRow() { 
   124   int LpGlpk::_addRow() { 
   123     int i=LEMON_glp(add_rows)(lp, 1);
   125     int i=LEMON_glp(add_rows)(lp, 1);
   124     solved = false;
   126     solved = false;