Skip to content

Commit

Permalink
Fix typo (& instead of &&) in dme_gen_opf.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdzman committed Feb 2, 2024
1 parent 6042b82 commit cf704a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/+mp/dme_gen_opf.m
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,14 @@
function str = pp_data_row_lim(obj, dm, k, out_e, mpopt, fd, pp_args)
%
if pp_args.gen.pq == 'P'
if obj.tab.status(k) & ...
if obj.tab.status(k) && ...
(obj.tab.pg(k) < obj.tab.pg_lb(k) + obj.ctol || ...
obj.tab.mu_pg_lb(k) > obj.ptol)
mu_lb = sprintf('%10.3f', obj.tab.mu_pg_lb(k));
else
mu_lb = ' - ';
end
if obj.tab.status(k) & ...
if obj.tab.status(k) && ...
(obj.tab.pg(k) > obj.tab.pg_ub(k) - obj.ctol || ...
obj.tab.mu_pg_ub(k) > obj.ptol)
mu_ub = sprintf('%10.3f', obj.tab.mu_pg_ub(k));
Expand All @@ -204,14 +204,14 @@
obj.tab.uid(k), obj.tab.bus(k), mu_lb, obj.tab.pg_lb(k), ...
pg, obj.tab.pg_ub(k), mu_ub);
else % pp_args.gen.pq == 'Q'
if obj.tab.status(k) & ...
if obj.tab.status(k) && ...
(obj.tab.qg(k) < obj.tab.qg_lb(k) + obj.ctol || ...
obj.tab.mu_qg_lb(k) > obj.ptol)
mu_lb = sprintf('%10.3f', obj.tab.mu_qg_lb(k));
else
mu_lb = ' - ';
end
if obj.tab.status(k) & ...
if obj.tab.status(k) && ...
(obj.tab.qg(k) > obj.tab.qg_ub(k) - obj.ctol || ...
obj.tab.mu_qg_ub(k) > obj.ptol)
mu_ub = sprintf('%10.3f', obj.tab.mu_qg_ub(k));
Expand Down

0 comments on commit cf704a7

Please sign in to comment.