Initialize continuation of Hopf bifurcations

Contents

function [hbranch,suc]=SetupHopf(funcs,branch,ind,varargin)

Inputs

Important name-value pair inputs

All other named arguments are passed on to fields of hbranch

Outputs

(c) DDE-BIFTOOL v. 3.1.1(20), 11/04/2014

process options

default={'contpar',[],'correc',true,'dir',[],'step',1e-3,'excludefreqs',[]};
[options,pass_on]=dde_set_options(default,varargin,'pass_on');
% initialize branch of folds (pbranch)
hbranch=branch;
hbranch=replace_branch_pars(hbranch,options.contpar,pass_on);
point=branch.point(ind);
if ~isfield(point,'stability') || isempty(point.stability)
    point.stability=p_stabil(funcs,point,branch.method.stability);
end

create initial guess for correction

hini0=p_tohopf(funcs,point,options.excludefreqs);

correct and add 2nd point if desired

[hbranch,suc]=correct_ini(funcs,hbranch,hini0,...
    options.dir,options.step,options.correc);
end