Skip to content

Commit

Permalink
Fixes to SDFKP
Browse files Browse the repository at this point in the history
  • Loading branch information
avalenzu committed Nov 13, 2014
1 parent bff5574 commit 7f1f3e8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@
end
obj.qsc_weight_inds{time_index{j}} = obj.num_vars+(1:constraint.num_pts)';
obj = obj.addDecisionVariable(constraint.num_pts,qsc_weight_names);
obj = obj.addDifferentiableConstraint(cnstr{1},{obj.q_inds(:,time_index{j});obj.qsc_weight_inds{time_index{j}}},obj.kinsol_dataind(time_index{j}));
obj = obj.addLinearConstraint(cnstr{2},obj.qsc_weight_inds{time_index{j}});
obj = obj.addBoundingBoxConstraint(cnstr{3},obj.qsc_weight_inds{time_index{j}});
obj = obj.addConstraint(cnstr{1},{obj.q_inds(:,time_index{j});obj.qsc_weight_inds{time_index{j}}},obj.kinsol_dataind(time_index{j}));
obj = obj.addConstraint(cnstr{2},obj.qsc_weight_inds{time_index{j}});
obj = obj.addConstraint(cnstr{3},obj.qsc_weight_inds{time_index{j}});
end
elseif isa(constraint,'SingleTimeLinearPostureConstraint')
cnstr = constraint.generateConstraint();
Expand Down

0 comments on commit 7f1f3e8

Please sign in to comment.