mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
slight tuning of optimization
This commit is contained in:
parent
be7274b29e
commit
1bc41b35a4
@ -248,7 +248,7 @@ double BFGS (
|
||||
do
|
||||
{
|
||||
// Restart
|
||||
|
||||
// cout << "it " << it << "f = " << f << endl;
|
||||
if (it % (5 * n) == 0)
|
||||
{
|
||||
|
||||
@ -400,6 +400,8 @@ double BFGS (
|
||||
x = x0;
|
||||
}
|
||||
|
||||
// cout << endl;
|
||||
|
||||
// (*testout) << "x = " << x << ", x0 = " << x0 << endl;
|
||||
return f;
|
||||
}
|
||||
|
@ -187,9 +187,10 @@ void lines (Vector & x, // i: initial point of line-search
|
||||
// it = 100000l;
|
||||
it = 0;
|
||||
|
||||
// cout << "lin: ";
|
||||
while (it++ <= par.maxit_linsearch)
|
||||
{
|
||||
|
||||
// cout << "i = " << it << " f = " << f << " ";
|
||||
xneu.Set2 (1, x, alphahat, p);
|
||||
|
||||
|
||||
@ -292,7 +293,7 @@ void lines (Vector & x, // i: initial point of line-search
|
||||
}
|
||||
|
||||
// (*testout) << "linsearch: it = " << it << " ifail = " << ifail << endl;
|
||||
|
||||
// cout << endl;
|
||||
fun.FuncGrad (xneu, g);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user