Skip to content
Snippets Groups Projects
Commit 8c3b21ee authored by Oliver Sander's avatar Oliver Sander Committed by sander@PCPOOL.MI.FU-BERLIN.DE
Browse files

pick an initial iterate which is constant and has the required total force

[[Imported from SVN: r2281]]
parent cedca448
No related branches found
No related tags found
No related merge requests found
......@@ -212,8 +212,9 @@ get_starting_point(Ipopt::Index n, bool init_x, Ipopt::Number* x,
assert(init_lambda == false);
// initialize to the given starting point
for (int i=0; i<n; i++)
x[i] = 0;
for (int i=0; i<n/dim; i++)
for (int j=0; j<dim; j++)
x[i*dim+j] = resultantForce_[j]/patchArea_;
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment