Home
last modified time | relevance | path

Searched refs:computeobjectiveandgradient (Results 1 – 6 of 6) sorted by relevance

/petsc/src/tao/interface/
H A Dtaosolver_fg.c143 } else if (tao->ops->computeobjectiveandgradient) { in TaoComputeGradient()
145 …PetscCallBack("Tao callback objective/gradient", (*tao->ops->computeobjectiveandgradient)(tao, X, … in TaoComputeGradient()
189 } else if (tao->ops->computeobjectiveandgradient) { in TaoComputeObjective()
193 …PetscCallBack("Tao callback objective/gradient", (*tao->ops->computeobjectiveandgradient)(tao, X, … in TaoComputeObjective()
233 if (tao->ops->computeobjectiveandgradient) { in TaoComputeObjectiveAndGradient()
238 …} else PetscCallBack("Tao callback objective/gradient", (*tao->ops->computeobjectiveandgradient)(t… in TaoComputeObjectiveAndGradient()
554 if (func) tao->ops->computeobjectiveandgradient = func; in TaoSetObjectiveAndGradient()
587 if (func) *func = tao->ops->computeobjectiveandgradient; in TaoGetObjectiveAndGradient()
668 if (tao->ops->computeobjectiveandgradient == NULL) *flg = PETSC_FALSE; in TaoIsObjectiveAndGradientDefined()
/petsc/src/tao/linesearch/interface/
H A Dtaolinesearch.c189 if (ls->ops->computeobjectiveandgradient) { in TaoLineSearchSetUp()
712 ls->ops->computeobjectiveandgradient = func; in TaoLineSearchSetObjectiveAndGradientRoutine()
826 …PetscCheck(ls->ops->computeobjective || ls->ops->computeobjectiveandgradient || ls->ops->computeob… in TaoLineSearchComputeObjective()
829 else if (ls->ops->computeobjectiveandgradient) { in TaoLineSearchComputeObjective()
831 …PetscCallBack("TaoLineSearch callback objective", (*ls->ops->computeobjectiveandgradient)(ls, x, f… in TaoLineSearchComputeObjective()
874 …if (ls->ops->computeobjectiveandgradient) PetscCallBack("TaoLineSearch callback objective/gradient… in TaoLineSearchComputeObjectiveAndGradient()
921 …else PetscCallBack("TaoLineSearch callback gradient", (*ls->ops->computeobjectiveandgradient)(ls, … in TaoLineSearchComputeGradient()
/petsc/include/petsc/private/
H A Dtaolinesearchimpl.h10 PetscErrorCode (*computeobjectiveandgradient)(TaoLineSearch, Vec, PetscReal *, Vec, void *); member
H A Dtaoimpl.h15 PetscErrorCode (*computeobjectiveandgradient)(Tao, Vec, PetscReal *, Vec, void *); member
/petsc/src/binding/petsc4py/src/lib-petsc/
H A Dcustom.h630 *flg = (PetscBool)(tao->ops->computegradient || tao->ops->computeobjectiveandgradient); in TaoHasGradientRoutine()
/petsc/src/tao/bound/impls/bnk/
H A Dbnk.c1022 …PetscCall(TaoSetObjectiveAndGradient(bnk->bncg, NULL, tao->ops->computeobjectiveandgradient, tao->… in TaoSetUp_BNK()