Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jiedxu committed Aug 12, 2019
1 parent 8ea77d0 commit 727bd20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/milp/func.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function solveLinear(vec_c, vec_b, mat_aCap)
optimize!(model)
vec_result_u = [dual(cons[i]) for i = 1:length(cons)]
obj = objective_value(model)
vec_result_x = value(vec_x)
vec_result_x = [value(vec_x[i]) for i = 1:n_x]
return obj, vec_result_x, vec_result_u
end

Expand All @@ -111,6 +111,6 @@ function solveMix(n_x, vec_c, vec_b, mat_aCap, vec_f, mat_b)
optimize!(model)
vec_result_u = [dual(cons[i]) for i = 1:length(cons)]
obj = objective_value(model)
vec_result_x = value(vec_x)
vec_result_x = [value(vec_x[i]) for i = 1:n_x]
return obj, vec_result_x, vec_result_u
end

0 comments on commit 727bd20

Please sign in to comment.