Artifact 3cf9868bce7fb39da5c5d0ca8596c7ce5c6386968401c46f3aba281feef4709b:
- File mtt/lib/control/PPP/ppp_error.m — part of check-in [af3953deae] at 2021-03-01 11:39:42 on branch master — Cleanup repository after cvs2git conversion. (user: jeff@gridfinity.com, size: 339) [annotate] [blame] [check-ins using] [more...]
- File mttroot/mtt/lib/control/PPP/ppp_error.m — part of check-in [ca9ae39eaa] at 2001-08-10 16:19:06 on branch origin/master — Tidied up the optimisation stuff (user: gawthrop@users.sourceforge.net, size: 339) [annotate] [blame] [check-ins using]
function err = ppp_error(par) ## usage: err = error (par) ## ## global ppp_y_0 ppp_sim_command ppp_par ppp_i_par ppp_x0 ppp_sim ppp_u pars = ppp_par; pars(ppp_i_par) = par; y = sidSimpleExtruder_ssim(ppp_x0,pars,ppp_sim,ppp_u); [N,n_y] = size(y); Err = y - ppp_y_0; err = sum(diag(Err'*Err))/N endfunction