equal
deleted
inserted
replaced
617 protected: |
617 protected: |
618 /// \e |
618 /// \e |
619 virtual void _setColCont(int i) = 0; |
619 virtual void _setColCont(int i) = 0; |
620 /// \e |
620 /// \e |
621 virtual void _setColInt(int i) = 0; |
621 virtual void _setColInt(int i) = 0; |
|
622 /// \e |
|
623 virtual _Value _getMIPPrimal(int i) = 0; |
622 public: |
624 public: |
623 /// \e |
625 /// \e |
624 void setColCont(Col col) { |
626 void setColCont(Col col) { |
625 _setColCont(col_iter_map[col]); |
627 _setColCont(col_iter_map[col]); |
626 } |
628 } |
627 /// \e |
629 /// \e |
628 void setColInt(Col col) { |
630 void setColInt(Col col) { |
629 _setColInt(col_iter_map[col]); |
631 _setColInt(col_iter_map[col]); |
|
632 } |
|
633 /// \e |
|
634 _Value getMIPPrimal(Col col) { |
|
635 return _getMIPPrimal(col_iter_map[col]); |
630 } |
636 } |
631 //@} |
637 //@} |
632 }; |
638 }; |
633 |
639 |
634 template <typename _Value> |
640 template <typename _Value> |
1094 void setLP() { lpx_set_class(lp, LPX_LP); } |
1100 void setLP() { lpx_set_class(lp, LPX_LP); } |
1095 /// \e |
1101 /// \e |
1096 void setMIP() { lpx_set_class(lp, LPX_MIP); } |
1102 void setMIP() { lpx_set_class(lp, LPX_MIP); } |
1097 protected: |
1103 protected: |
1098 /// \e |
1104 /// \e |
1099 void _setColCont(int i) {lpx_set_col_kind(lp, i, LPX_CV); } |
1105 void _setColCont(int i) { lpx_set_col_kind(lp, i, LPX_CV); } |
1100 /// \e |
1106 /// \e |
1101 void _setColInt(int i) {lpx_set_col_kind(lp, i, LPX_IV); } |
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); } |
1102 }; |
1110 }; |
1103 |
1111 |
1104 /// @} |
1112 /// @} |
1105 |
1113 |
1106 } //namespace lemon |
1114 } //namespace lemon |