Commit b8f7f1f7 authored by David Bommes's avatar David Bommes
Browse files

added timings to AQP

parent e58d4082
Pipeline #2364 passed with stage
in 26 minutes and 30 seconds
......@@ -14,6 +14,7 @@
//== INCLUDES =================================================================
#include <CoMISo/Config/CoMISoDefines.hh>
#include <CoMISo/Utils/StopWatch.hh>
#include "NProblemInterface.hh"
//== FORWARDDECLARATIONS ======================================================
......@@ -50,6 +51,9 @@ public:
// solve
int solve(NProblemInterface* _quadratic_problem, NProblemInterface* _nonlinear_problem, const SMatrixD& _A, const VectorD& _b)
{
// time solution procedure
COMISO::StopWatch sw; sw.start();
// number of unknowns
int n = _quadratic_problem->n_unknowns();
// number of constraints
......@@ -112,6 +116,9 @@ public:
// store result
_quadratic_problem->store_result(x1.data());
double solution_time = sw.stop();
std::cerr << "Accelerated Quadratic Proxy finished in " << solution_time/1000.0 << "s" << std::endl;
// return success
return 1;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment