mirror of
https://github.com/ANL-CEEESA/MIPLearn.jl.git
synced 2025-12-07 08:48:52 -06:00
Replace sysimage.jl by juliaw; reformat source code
This commit is contained in:
@@ -569,13 +569,8 @@ function get_constraints(
|
||||
end
|
||||
end
|
||||
|
||||
lhs = sparse(
|
||||
lhs_rows,
|
||||
lhs_cols,
|
||||
lhs_values,
|
||||
length(rhs),
|
||||
JuMP.num_variables(data.model),
|
||||
)
|
||||
lhs =
|
||||
sparse(lhs_rows, lhs_cols, lhs_values, length(rhs), JuMP.num_variables(data.model))
|
||||
if !isempty(data.x)
|
||||
lhs_value = lhs * data.x
|
||||
slacks = abs.(lhs_value - rhs)
|
||||
@@ -652,11 +647,7 @@ function __init_JuMPSolver__()
|
||||
"slacks",
|
||||
]
|
||||
if repr(self.data.optimizer_factory) in ["Gurobi.Optimizer"]
|
||||
append!(attrs, [
|
||||
"basis_status",
|
||||
"sa_rhs_down",
|
||||
"sa_rhs_up",
|
||||
])
|
||||
append!(attrs, ["basis_status", "sa_rhs_down", "sa_rhs_up"])
|
||||
end
|
||||
return attrs
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user