| /petsc/src/tao/unconstrained/tutorials/output/ |
| H A D | minsurf2_4_snes_ngmres_snes_ngmres_select_type-linesearch.out | 7 Additive solution: objective = 1.433029e+00 11 Additive solution: objective = 1.424628e+00 14 Additive solution: objective = 1.419617e+00 17 Additive solution: objective = 1.418487e+00 20 Additive solution: objective = 1.418471e+00 23 Additive solution: objective = 1.418470e+00 26 Additive solution: objective = 1.418469e+00 29 Additive solution: objective = 1.418469e+00 32 Additive solution: objective = 1.418469e+00 35 Additive solution: objective = 1.418469e+00
|
| /petsc/src/snes/linesearch/impls/bt/ |
| H A D | linesearchbt.c | 71 SNESObjectiveFn *objective; in SNESLineSearchApply_BT() local 82 PetscCall(SNESGetObjective(snes, &objective, NULL)); in SNESLineSearchApply_BT() 86 …PetscCheck(jac || objective, PetscObjectComm((PetscObject)linesearch), PETSC_ERR_USER, "SNESLineSe… in SNESLineSearchApply_BT() 110 if (objective) { in SNESLineSearchApply_BT() 118 if (objective) { in SNESLineSearchApply_BT() 140 if (objective) { in SNESLineSearchApply_BT() 164 …if (!objective) PetscCall(PetscInfo(snes, "Initial fnorm %14.12e gnorm %14.12e\n", (double)fnorm, … in SNESLineSearchApply_BT() 168 if (!objective) { in SNESLineSearchApply_BT() 203 if (objective) { in SNESLineSearchApply_BT() 224 if (!objective) { in SNESLineSearchApply_BT() [all …]
|
| /petsc/src/snes/impls/ls/ |
| H A D | ls.c | 51 SNESObjectiveFn *objective; in SNESNEWTONLSCheckLocalMin_Private() local 55 PetscCall(SNESGetObjective(snes, &objective, NULL)); in SNESNEWTONLSCheckLocalMin_Private() 56 if (!objective) { in SNESNEWTONLSCheckLocalMin_Private() 92 SNESObjectiveFn *objective; in SNESNEWTONLSCheckResidual_Private() local 96 PetscCall(SNESGetObjective(snes, &objective, NULL)); in SNESNEWTONLSCheckResidual_Private() 97 if (hastranspose && !objective) { in SNESNEWTONLSCheckResidual_Private()
|
| /petsc/src/snes/linesearch/impls/secant/ |
| H A D | linesearchsecant.c | 22 SNESObjectiveFn *objective; in SNESLineSearchApply_Secant() local 33 PetscCall(SNESGetObjective(snes, &objective, NULL)); in SNESLineSearchApply_Secant() 38 if (!objective) { in SNESLineSearchApply_Secant() 51 if (!objective) { in SNESLineSearchApply_Secant() 112 if (!objective) { in SNESLineSearchApply_Secant()
|
| /petsc/src/tao/unconstrained/tutorials/ |
| H A D | adjointreads.m | 15 %obj- the objective function 57 ylabel('f(x)- objective'); 77 % ylabel('f(x)- objective'); 132 % ylabel('f(x)- objective');
|
| /petsc/src/snes/tests/output/ |
| H A D | ex4_1.out | 1 Line search: objective function at lambda = 1. is infinity or NaN, cutting lambda
|
| H A D | ex241_1.out | 5 Line search: objective function at lambdas = 1. is infinity or NaN, cutting lambda
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | TAO.pyx | 309 …def setObjective(self, objective: TAOObjectiveFunction, args: tuple[Any, ...] | None = None, kargs… 310 """Set the objective function evaluation callback. 316 objective 317 The objective function callback. 330 context = (objective, args, kargs) 424 """Return the objective evaluation callback. 433 cdef object objective = self.get_attr("__objective__") 434 return objective 453 """Set the objective function and gradient evaluation callback. 460 The objective function and gradient callback. [all …]
|
| H A D | petsctao.pxi | 283 (objective, args, kargs) = context 284 retv = objective(tao, x, *args, **kargs) 587 (objective, args, kargs) = ls.get_attr("__objective__") 588 retv = objective(ls, x, *args, **kargs)
|
| H A D | petscsnes.pxi | 404 (objective, args, kargs) = context 405 obj = objective(Snes, Xvec, *args, **kargs)
|
| H A D | SNES.pyx | 999 objective: SNESObjFunction | None, 1002 """Set the callback to compute the objective function. 1008 objective 1020 if objective is not None: 1023 context = (objective, args, kargs) 1030 """Return the objective callback tuple. 1040 cdef object objective = self.get_attr('__objective__') 1041 return objective 1086 """Compute the value of the objective function.
|
| H A D | KSP.pyx | 1897 """Return the CG objective function value.
|
| /petsc/src/snes/impls/ngmres/ |
| H A D | snesngmres.c | 142 SNESObjectiveFn *objective; in SNESSolve_NGMRES() local 188 PetscCall(SNESGetObjective(snes, &objective, NULL)); in SNESSolve_NGMRES() 190 if (objective) { in SNESSolve_NGMRES() 238 if (objective) { in SNESSolve_NGMRES() 253 if (objective) { in SNESSolve_NGMRES() 261 if (objective) { in SNESSolve_NGMRES()
|
| H A D | ngmresfunc.c | 210 SNESObjectiveFn *objective; in SNESNGMRESSelect_Private() local 212 PetscCall(SNESGetObjective(snes, &objective, NULL)); in SNESNGMRESSelect_Private() 213 if (objective) PetscCall(SNESComputeObjective(snes, X, &objT)); in SNESNGMRESSelect_Private()
|
| /petsc/doc/manual/ |
| H A D | tao.md | 69 call-back routines will be used for evaluating the objective function, 116 evaluate the objective function, compute constraints, and provide 215 For example, a routine that evaluates an objective function may need 218 objective, can be collected in a single structure and used as one of the 237 TAO solvers that minimize an objective function require the application 238 to evaluate the objective function. Some solvers may also require the 239 application to evaluate derivatives of the objective function. Routines 249 in order to evaluate an objective function 252 that identifies where the objective should be evaluated, and the fourth 254 argument to return the objective value evaluated at the point specified [all …]
|
| H A D | ts.md | 1190 `TS` objective by calling 1266 is fixed. The objective is to maximize $p_m$ subject to the above
|
| H A D | snes.md | 246 …ar solvers will propose solutions $u$, where the function value (or the objective function set wit… 419 which uses a polynomial secant minimization of $||F(x)||_2$ or an objective function
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_tao.py | 64 objective, gradient, objgrad = None, None, None 67 tao.setObjective(objective)
|
| /petsc/src/snes/interface/ftn-custom/ |
| H A D | zsnesf.c | 68 PetscFortranCallbackId objective; member 163 …PetscObjectUseFortranCallback(snes, _cb.objective, (SNES *, Vec *, PetscReal *, void *, PetscError… in oursnesobjective() 293 …tFortranCallback((PetscObject)*snes, PETSC_FORTRAN_CALLBACK_CLASS, &_cb.objective, (PetscFortranCa… in snessetobjective_()
|
| /petsc/src/snes/interface/ |
| H A D | snesut.c | 314 SNESObjectiveFn *objective; in SNESMonitorDefault() local 318 PetscCall(SNESGetObjective(snes, &objective, NULL)); in SNESMonitorDefault() 319 if (objective) { in SNESMonitorDefault()
|
| H A D | snes.c | 2670 SNESObjectiveFn *objective; in SNESTestFunction() local 2673 PetscCall(SNESGetObjective(snes, &objective, NULL)); in SNESTestFunction() 2674 if (!objective) PetscFunctionReturn(PETSC_SUCCESS); in SNESTestFunction()
|
| /petsc/src/snes/impls/tr/ |
| H A D | tr.c | 499 SNESObjectiveFn *objective; in SNESSolve_NEWTONTR() local 504 PetscCall(SNESGetObjective(snes, &objective, NULL)); in SNESSolve_NEWTONTR() 505 has_objective = objective ? PETSC_TRUE : PETSC_FALSE; in SNESSolve_NEWTONTR()
|
| /petsc/doc/community/bofs/ |
| H A D | 2026_Feb_CASS.md | 59 …O) discretizations with scalable linear solvers available in PETSc. The objective is to efficientl…
|
| /petsc/doc/changes/ |
| H A D | 321.md | 189 …)`. Now it accepts a single context and a Boolean indicating to use the objective function callback
|
| /petsc/doc/community/meetings/2025/ |
| H A D | index.md | 228 …rt of Proteus. PETSc is a vital part of the development of Proteus. The objective of this talk is …
|