Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ minilp = [

[dependencies]
coin_cbc = { version = "0.1", optional = true, default-features = false }
microlp = { version = "0.2.11", optional = true }
microlp = { version = "0.3.1", optional = true }
lpsolve = { version = "1.0.1", optional = true }
highs = { version = "2.0.0", optional = true }
russcip = { version = "0.9.1", optional = true }
Expand Down
3 changes: 2 additions & 1 deletion src/solvers/microlp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ impl From<microlp::Error> for ResolutionError {
microlp::Error::Unbounded => Self::Unbounded,
microlp::Error::Infeasible => Self::Infeasible,
microlp::Error::InternalError(s) => Self::Str(s),
microlp::Error::Limit => Self::Str("Execution Limit reached".to_string()),
Comment thread
Specy marked this conversation as resolved.
Outdated
}
}
}
Expand All @@ -124,7 +125,7 @@ impl Solution for MicroLpSolution {
SolutionStatus::Optimal
}
fn value(&self, variable: Variable) -> f64 {
self.solution[self.variables[variable.index()]]
self.solution.var_value(self.variables[variable.index()])
}
}

Expand Down