fnbinomial.gms : 이항 내재의 정확성 테스트

설명

reps = 1e-7;

소형 모델 유형 :슬롯


카테고리 : 슬롯 테스트 라이브러리


메인 파일 : fnbinomial.gms 포함: fnset_xy.inc[htmlfntest_xy.inc[html]

$title '이항 내재의 정확성 테스트' (FNBINOMIAL,SEQ=730)

$include fnset_xy.inc

$gdxIn fn이항
$load aeps 담당자 담당자2 T 데이터
$gdxIn
* 반복수 = 1e-7;

data(T,'fxy_') = data(T,'fxy_');

루프 T,
  data(T, 'f') = binomial.value( data(T,'x'),data(T,'y'));
  data(T, 'fx') = binomial.grad(1: data(T,'x'),data(T,'y'));
  data(T, 'fy') = binomial.grad(2: data(T,'x'),data(T,'y'));
  data(T,'fxx') = binomial.hess(1:1:data(T,'x'),data(T,'y'));
  data(T,'fxy') = binomial.hess(1:2:data(T,'x'),data(T,'y'));
  data(T,'fyx') = binomial.hess(2:1:data(T,'x'),data(T,'y'));
  data(T,'fyy') = binomial.hess(2:2:data(T,'x'),data(T,'y'));
  data(T, 'rc') = mathlastrc;
  data(T, 'ec') = mathlastec;
;

$include fntest_xy.inc