Lines Matching refs:subsolver

79 PetscErrorCode TaoALMMGetSubsolver(Tao tao, Tao *subsolver)  in TaoALMMGetSubsolver()  argument
83 PetscAssertPointer(subsolver, 2); in TaoALMMGetSubsolver()
84 PetscUseMethod(tao, "TaoALMMGetSubsolver_C", (Tao, Tao *), (tao, subsolver)); in TaoALMMGetSubsolver()
88 PetscErrorCode TaoALMMGetSubsolver_Private(Tao tao, Tao *subsolver) in TaoALMMGetSubsolver_Private() argument
93 *subsolver = auglag->subsolver; in TaoALMMGetSubsolver_Private()
111 PetscErrorCode TaoALMMSetSubsolver(Tao tao, Tao subsolver) in TaoALMMSetSubsolver() argument
115 PetscValidHeaderSpecific(subsolver, TAO_CLASSID, 2); in TaoALMMSetSubsolver()
116 PetscTryMethod(tao, "TaoALMMSetSubsolver_C", (Tao, Tao), (tao, subsolver)); in TaoALMMSetSubsolver()
120 PetscErrorCode TaoALMMSetSubsolver_Private(Tao tao, Tao subsolver) in TaoALMMSetSubsolver_Private() argument
126 if (subsolver == auglag->subsolver) PetscFunctionReturn(PETSC_SUCCESS); in TaoALMMSetSubsolver_Private()
128 …PetscCall(PetscObjectTypeCompareAny((PetscObject)subsolver, &compatible, TAOSHELL, TAOBNCG, TAOBQN… in TaoALMMSetSubsolver_Private()
131 …PetscCall(PetscObjectTypeCompareAny((PetscObject)subsolver, &compatible, TAOSHELL, TAOCG, TAOLMVM,… in TaoALMMSetSubsolver_Private()
135 PetscCall(PetscObjectReference((PetscObject)subsolver)); in TaoALMMSetSubsolver_Private()
136 PetscCall(TaoDestroy(&auglag->subsolver)); in TaoALMMSetSubsolver_Private()
137 auglag->subsolver = subsolver; in TaoALMMSetSubsolver_Private()
139 PetscCall(TaoSetSolution(auglag->subsolver, auglag->P)); in TaoALMMSetSubsolver_Private()
140 … PetscCall(TaoSetObjective(auglag->subsolver, TaoALMMSubsolverObjective_Private, (void *)auglag)); in TaoALMMSetSubsolver_Private()
141 …PetscCall(TaoSetObjectiveAndGradient(auglag->subsolver, NULL, TaoALMMSubsolverObjectiveAndGradient… in TaoALMMSetSubsolver_Private()
142 PetscCall(TaoSetVariableBounds(auglag->subsolver, auglag->PL, auglag->PU)); in TaoALMMSetSubsolver_Private()