Skip to content
Open
Changes from all 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
10 changes: 8 additions & 2 deletions src/solver/cbc_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,15 @@ impl SolverCbcCmd {
if !cbc && s == "optimal" {
status = SolverStatus::Solved;
}
else if !cbc && s == "Optimal" {
status = SolverStatus::Solved;
}
else if !cbc && s == "infeasible" {
status = SolverStatus::Infeasible;
}
else if !cbc && s == "Infeasible" {
status = SolverStatus::Infeasible;
}
else if cbc && s == "Optimal" {
status = SolverStatus::Solved;
}
Expand All @@ -90,7 +96,7 @@ impl SolverCbcCmd {
}

// Objective value
if !cbc {
if !cbc && (!line.contains("-")) {
r.read_line(&mut line)?;
}

Expand Down Expand Up @@ -122,7 +128,7 @@ impl SolverCbcCmd {
};

// Variable
if dtype == "x" {
if dtype == "x" {
solution.x[index] = value;
if mul > 0. {
solution.pi[index] = mul;
Expand Down