Skip to content

Commit

Permalink
AMPL: write the solution without printing the message to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
cvanaret committed Oct 21, 2024
1 parent b640233 commit cf3ec48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bindings/AMPL/AMPLModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,9 @@ namespace uno {
else if (termination_status == TerminationStatus::INFEASIBLE_SMALL_STEP) {
this->asl->p.solve_code_ = 500;
}
write_sol_ASL(this->asl, "", iterate.primals.data(), iterate.multipliers.constraints.data(), nullptr);
Option_Info option_info{};
option_info.wantsol = 9; // write the solution without printing the message to stdout
write_sol_ASL(this->asl, "", iterate.primals.data(), iterate.multipliers.constraints.data(), &option_info);
}
}

Expand Down

0 comments on commit cf3ec48

Please sign in to comment.