Skip to content

Commit d3bde4c

Browse files
committed
Allow calling miqps_highs() with HiPO solver selected (for LP problems).
1 parent 47d280a commit d3bde4c

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

lib/miqps_highs.m

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,16 @@
272272
names = struct( ...
273273
'choose', 'default', ...
274274
'simplex', 'dual simplex', ...
275-
'ipm', 'interior point', ...
275+
'ipm', 'interior point (auto)', ...
276+
'ipx', 'interior point (IPX)', ...
277+
'hipo', 'interior point (HiPO)', ...
276278
'pdlp', 'primal-dual hybrid gradient' );
277-
fprintf('HiGHS Version %s -- %s %s solver\n', vn, names.(solver), lpqp);
279+
if ismember(solver, fieldnames(names))
280+
solver_name = names.(solver);
281+
else
282+
solver_name = 'unknown';
283+
end
284+
fprintf('HiGHS Version %s -- %s %s solver\n', vn, solver_name, lpqp);
278285
end
279286
[soln, info, opts, basis] = callhighs(c, A, l, u, xmin, xmax, H, integrality, highs_opt);
280287
if verbose

0 commit comments

Comments
 (0)