add save-sol to output all solutions to a file

This commit is contained in:
Johann Dreo 2023-03-28 18:58:51 +02:00 committed by nojhan
commit a376921f07

View file

@ -143,10 +143,12 @@ class moBinaryPartition : public EO<FitT>
virtual void printOn(std::ostream& out) const override virtual void printOn(std::ostream& out) const override
{ {
this->printSelectedOn(out); this->printSelectedOn(out);
out << " "; // Printing the rejected atom should not be necessary,
out << rejected.size() << " "; // Size. // as this is the complementary set of the selected.
std::copy(std::begin(rejected), std::end(rejected), // out << " ";
std::ostream_iterator<AtomType>(out, " ")); // Values. // out << rejected.size() << " "; // Size.
// std::copy(std::begin(rejected), std::end(rejected),
// std::ostream_iterator<AtomType>(out, " ")); // Values.
} }
/** Deserialization of the `selected` and `rejected` atoms. /** Deserialization of the `selected` and `rejected` atoms.