Skip to content

Commit

Permalink
Fixes yalmip#660 sdisplay strange error using same name on different …
Browse files Browse the repository at this point in the history
…variables
  • Loading branch information
johanlofberg committed Sep 20, 2019
1 parent 4af8acc commit 2d297d0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions extras/sdisplay.m
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@
end
end

for i = 1:length(global_names)
if length(global_names{i}) == 0
global_names{i} = ['internal(' num2str(global_LinearVariables(i)) ')'];
end
end

for pi = 1:size(pvec,1)
for pj = 1:size(pvec,2)
p = pvec(pi,pj);
Expand Down

0 comments on commit 2d297d0

Please sign in to comment.