constraints for EBA and CBA f = cbaf3(x,v_mean,v_std)
0001 function f = cbaf3(x,v_mean,v_std) 0002 0003 % constraints for EBA and CBA 0004 % f = cbaf3(x,v_mean,v_std) 0005 0006 ind = find(isfinite(v_mean)); 0007 0008 f = sum([[x(ind)-v_mean(ind)]./v_std(ind)].^2);