Skip to content

Commit

Permalink
Minor bug fixes tohandle edge cases. Allow mosek params to be passed …
Browse files Browse the repository at this point in the history
…in properly, fix to mtimes dimensions.
  • Loading branch information
mposa committed Dec 12, 2015
1 parent 2760de3 commit 83e5230
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions @msspoly/mtimes.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
end
end

sz1 = p1.dim;
sz2 = p2.dim;
sz1 = p1.dim(1);
sz2 = p2.dim(2);

if sz1 == 0 | sz2 == 0
q = msspoly(sparse(sz1,sz2));
Expand Down
2 changes: 1 addition & 1 deletion @msspoly/subs.m
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
elseif deg(p,a) <=1
% Polynomial is /linear/ in variables to be substituted.
sz = size(p);
p = p(:);
p = reshape(p,[],1);

pA = diff(p,a);
pc = subs(p,a,0*a);
Expand Down
4 changes: 2 additions & 2 deletions spotopt/solvers/spot_mosek.m
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@

start = spot_now();
if options.verbose
[r,res] = mosekopt(cmd,prob);
[r,res] = mosekopt(cmd,prob,param);
else
[info.console,r,res] = evalc('mosekopt(cmd, prob);');
[info.console,r,res] = evalc('mosekopt(cmd, prob, param);');
end
[info.ctime,info.wtime] = spot_etime(spot_now(),start);

Expand Down

0 comments on commit 83e5230

Please sign in to comment.