From 727bd20bb806f0d0b9d877d995596c417f6a34b0 Mon Sep 17 00:00:00 2001 From: edxu96 Date: Mon, 12 Aug 2019 15:57:36 +0200 Subject: [PATCH] update --- src/milp/func.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/milp/func.jl b/src/milp/func.jl index e1d8d70..55d3a82 100644 --- a/src/milp/func.jl +++ b/src/milp/func.jl @@ -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 @@ -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