From cf704a71d9fb216e4f9cbc6d5cf75be4b1669fef Mon Sep 17 00:00:00 2001 From: Ray Zimmerman Date: Fri, 2 Feb 2024 14:49:30 -0700 Subject: [PATCH] Fix typo (& instead of &&) in dme_gen_opf. --- lib/+mp/dme_gen_opf.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/+mp/dme_gen_opf.m b/lib/+mp/dme_gen_opf.m index a7917fcf..f2668af8 100644 --- a/lib/+mp/dme_gen_opf.m +++ b/lib/+mp/dme_gen_opf.m @@ -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)); @@ -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));