File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ minilp = [
3838
3939[dependencies ]
4040coin_cbc = { version = " 0.1" , optional = true , default-features = false }
41- microlp = { version = " 0.2.11 " , optional = true }
41+ microlp = { version = " 0.3.1 " , optional = true }
4242lpsolve = { version = " 1.0.1" , optional = true }
4343highs = { version = " 2.0.0" , optional = true }
4444russcip = { version = " 0.9.1" , optional = true }
Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ impl From<microlp::Error> for ResolutionError {
102102 microlp:: Error :: Unbounded => Self :: Unbounded ,
103103 microlp:: Error :: Infeasible => Self :: Infeasible ,
104104 microlp:: Error :: InternalError ( s) => Self :: Str ( s) ,
105+ microlp:: Error :: Limit => Self :: Other ( "Execution Limit reached" ) ,
105106 }
106107 }
107108}
@@ -124,7 +125,7 @@ impl Solution for MicroLpSolution {
124125 SolutionStatus :: Optimal
125126 }
126127 fn value ( & self , variable : Variable ) -> f64 {
127- self . solution [ self . variables [ variable. index ( ) ] ]
128+ self . solution . var_value ( self . variables [ variable. index ( ) ] )
128129 }
129130}
130131
You can’t perform that action at this time.
0 commit comments