Skip to content
Snippets Groups Projects
Commit 72dfdfaa authored by Médéric Fourmy's avatar Médéric Fourmy
Browse files

Problem::print more adapted to numerous stateblock

parent a4a337ac
No related branches found
No related tags found
1 merge request!339Adapting to multiple processor motion 285
...@@ -960,18 +960,28 @@ void Problem::print(int depth, bool constr_by, bool metric, bool state_blocks) c ...@@ -960,18 +960,28 @@ void Problem::print(int depth, bool constr_by, bool metric, bool state_blocks) c
{ {
cout << (F->isFixed() ? " Fix" : " Est") << ", ts=" << std::setprecision(5) cout << (F->isFixed() ? " Fix" : " Est") << ", ts=" << std::setprecision(5)
<< F->getTimeStamp().get(); << F->getTimeStamp().get();
cout << ",\t x = ( " << std::setprecision(2) << F->getState().transpose() << " )"; cout << ",\t x = ( " << std::setprecision(2) << endl;
cout << endl; for (auto sb_name: F->getStructure()){
} auto sb = F->getStateBlock(sb_name);
if (state_blocks) cout << " " << sb_name;
{ if (state_blocks){
cout << " sb:"; cout << "," << (sb->isFixed() ? "Fix" : "Est");
for (const auto& sb : F->getStateBlockVec()) }
{ cout << ": " << sb->getState().transpose() << "\n";
cout << " " << (sb->isFixed() ? "Fix" : "Est");
} }
cout << endl; cout << " )" << endl;
// cout << ",\t x = ( " << std::setprecision(2) << F->getState().transpose() << " )";
// cout << endl;
} }
// if (state_blocks)
// {
// cout << " sb:";
// for (const auto& sb : F->getStateBlockVec())
// {
// cout << " " << (sb->isFixed() ? "Fix" : "Est");
// }
// cout << endl;
// }
if (depth >= 2) if (depth >= 2)
{ {
// Captures ======================================================================================= // Captures =======================================================================================
......
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