Skip to content

Commit

Permalink
Merge pull request RobotLocomotion#1241 from hongkai-dai/BMI
Browse files Browse the repository at this point in the history
Fix BMI test failure
  • Loading branch information
RussTedrake committed Aug 8, 2015
2 parents fd35e9e + bc3b3d1 commit aa4442c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drake/solvers/BMI/BMIspotless.m
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@
if(numel(w_guess)~=length(obj.w))
error('w_guess does not have the right size');
end
w_direction = w_guess(:);
w_direction_init = w_guess(:);
else
w_direction = zeros(size(obj.w));
w_direction_init = zeros(size(obj.w));
end
options = spot_sdp_default_options();
options.verbose = 0;
Expand All @@ -92,6 +92,7 @@
converged = false;
itr = 1;
solver_time = 0;
w_direction = w_direction_init;
while(~converged && itr<=obj.itr_max)
solver_sol = obj.minimize(trace(obj.W)-2*w_direction'*obj.w,obj.solver,options);
solver_time = solver_time + solver_sol.info.wtime;
Expand Down

0 comments on commit aa4442c

Please sign in to comment.