Skip to content

Commit

Permalink
231009.002010.HKT revise matlab recursive tes
Browse files Browse the repository at this point in the history
  • Loading branch information
zaikunzhang committed Oct 8, 2023
1 parent da041d7 commit 775a123
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions matlab/tests/recursive.m
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,7 @@ function recursive(solver, options)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function f = rfun(x, fun, solver, n, solver_options)
%RFUN defines a function of x by minimizing fun([x; y]) with respect to y in R^n using a solver.
solver_options.iprint = 0;
solver_options.rhoend = 1.0e-2;
[~, f] = solver(@(y) fun([x; y]), randn(2, 1), solver_options);
return

0 comments on commit 775a123

Please sign in to comment.