Lines Matching refs:unprojected_gradient
62 PetscCall(TaoComputeObjectiveAndGradient(tao, tao->solution, &bnk->f, bnk->unprojected_gradient)); in TaoBNKInitialize()
64 PetscCall(VecCopy(bnk->unprojected_gradient, tao->gradient)); in TaoBNKInitialize()
69 PetscCall(VecFischer(tao->solution, bnk->unprojected_gradient, tao->XL, tao->XU, bnk->W)); in TaoBNKInitialize()
109 PetscCall(MatLMVMAllocate(bnk->M, tao->solution, bnk->unprojected_gradient)); in TaoBNKInitialize()
242 PetscCall(TaoComputeGradient(tao, tao->solution, bnk->unprojected_gradient)); in TaoBNKInitialize()
244 PetscCall(VecCopy(bnk->unprojected_gradient, tao->gradient)); in TaoBNKInitialize()
250 PetscCall(VecFischer(tao->solution, bnk->unprojected_gradient, tao->XL, tao->XU, bnk->W)); in TaoBNKInitialize()
287 if (bnk->M) PetscCall(MatLMVMUpdate(bnk->M, tao->solution, bnk->unprojected_gradient)); in TaoBNKComputeHessian()
305 …PetscCall(VecWhichInactive(tao->XL, tao->solution, bnk->unprojected_gradient, tao->XU, PETSC_TRUE,… in TaoBNKEstimateActiveSet()
314 PetscCall(MatSolve(bnk->M, bnk->unprojected_gradient, bnk->W)); in TaoBNKEstimateActiveSet()
325 PetscCall(VecPointwiseMult(bnk->W, bnk->Xwork, bnk->unprojected_gradient)); in TaoBNKEstimateActiveSet()
328 PetscCall(VecCopy(bnk->unprojected_gradient, bnk->W)); in TaoBNKEstimateActiveSet()
332 …PetscCall(TaoEstimateActiveBounds(tao->solution, tao->XL, tao->XU, bnk->unprojected_gradient, bnk-… in TaoBNKEstimateActiveSet()
436 PetscCall(VecCopy(bnk->unprojected_gradient, bnk->Gwork)); in TaoBNKComputeStep()
441 bnk->G_inactive = bnk->unprojected_gradient; in TaoBNKComputeStep()
514 PetscCall(MatLMVMUpdate(bnk->M, tao->solution, bnk->unprojected_gradient)); in TaoBNKComputeStep()
592 PetscCall(MatSolve(bnk->M, bnk->unprojected_gradient, tao->stepdirection)); in TaoBNKSafeguardStep()
606 PetscCall(MatLMVMUpdate(bnk->M, tao->solution, bnk->unprojected_gradient)); in TaoBNKSafeguardStep()
607 PetscCall(MatSolve(bnk->M, bnk->unprojected_gradient, tao->stepdirection)); in TaoBNKSafeguardStep()
665 PetscCall(MatLMVMUpdate(bnk->M, tao->solution, bnk->unprojected_gradient)); in TaoBNKSafeguardStep()
699 …PetscCall(TaoLineSearchApply(tao->linesearch, tao->solution, &bnk->f, bnk->unprojected_gradient, t… in TaoBNKPerformLineSearch()
706 PetscCall(VecCopy(bnk->unprojected_gradient_old, bnk->unprojected_gradient)); in TaoBNKPerformLineSearch()
730 PetscCall(VecCopy(bnk->unprojected_gradient, tao->stepdirection)); in TaoBNKPerformLineSearch()
734 PetscCall(MatSolve(bnk->M, bnk->unprojected_gradient, tao->stepdirection)); in TaoBNKPerformLineSearch()
743 PetscCall(MatLMVMUpdate(bnk->M, tao->solution, bnk->unprojected_gradient)); in TaoBNKPerformLineSearch()
744 PetscCall(MatSolve(bnk->M, bnk->unprojected_gradient, tao->stepdirection)); in TaoBNKPerformLineSearch()
765 PetscCall(MatLMVMUpdate(bnk->M, tao->solution, bnk->unprojected_gradient)); in TaoBNKPerformLineSearch()
766 PetscCall(MatSolve(bnk->M, bnk->unprojected_gradient, tao->stepdirection)); in TaoBNKPerformLineSearch()
777 …PetscCall(TaoLineSearchApply(tao->linesearch, tao->solution, &bnk->f, bnk->unprojected_gradient, t… in TaoBNKPerformLineSearch()
992 …if (!bnk->unprojected_gradient) PetscCall(VecDuplicate(tao->solution, &bnk->unprojected_gradient)); in TaoSetUp_BNK()
1002 PetscCall(PetscObjectReference((PetscObject)bnk->unprojected_gradient)); in TaoSetUp_BNK()
1003 PetscCall(VecDestroy(&bnk->bncg_ctx->unprojected_gradient)); in TaoSetUp_BNK()
1004 bnk->bncg_ctx->unprojected_gradient = bnk->unprojected_gradient; in TaoSetUp_BNK()
1050 PetscCall(VecDestroy(&bnk->unprojected_gradient)); in TaoDestroy_BNK()