Skip to content

Commit

Permalink
Skip price computation in miqps_matpower() for pure integer problems.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdzman committed Dec 8, 2023
1 parent f6060d2 commit 8f17cd3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/t/t_miqps_matpower.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function t_miqps_matpower(quiet)
does_qp(1) = 1;
end

n = 50;
n = 46;
nqp = 28;
nmiqp = 7;
t_begin(n*length(algs), quiet);
Expand Down Expand Up @@ -180,7 +180,7 @@ function t_miqps_matpower(quiet)
t_ok(s <= 0, [t 'no success']);

% opt.verbose = 3;
t = sprintf('%s - 2-d MILP : ', names{k});
t = sprintf('%s - 2-d ILP : ', names{k});
%% from MOSEK 6.0 Guided Tour, section 7.13.1, https://docs.mosek.com/6.0/toolbox/node009.html
c = [-2; -3];
A = sparse([195 273; 4 40]);
Expand All @@ -192,10 +192,6 @@ function t_miqps_matpower(quiet)
t_is(s, 1, 12, [t 'success']);
t_is(x, [4; 2], 12, [t 'x']);
t_is(f, -14, 12, [t 'f']);
t_is(lam.mu_l, [0; 0], 12, [t 'lam.mu_l']);
t_is(lam.mu_u, [0; 0], 12, [t 'lam.mu_u']);
t_is(lam.lower, [0; 0], 12, [t 'lam.lower']);
t_is(lam.upper, [2; 3], 12, [t 'lam.upper']);

if does_qp(k)
t = sprintf('%s - 4-d MIQP : ', names{k});
Expand Down

0 comments on commit 8f17cd3

Please sign in to comment.