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
{
this->printSelectedOn(out);
out << " ";
out << rejected.size() << " "; // Size.
std::copy(std::begin(rejected), std::end(rejected),
std::ostream_iterator<AtomType>(out, " ")); // Values.
// Printing the rejected atom should not be necessary,
// as this is the complementary set of the selected.
// out << " ";
// 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.