Skip to content

Commit

Permalink
Fix solver-test: old API call
Browse files Browse the repository at this point in the history
  • Loading branch information
glebbelov committed Aug 18, 2023
1 parent ece4a6f commit b376de4
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions include/mp/solver-io.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class SolutionWriterImpl :

ArrayRef<int> options_;

// The number of feasible solutions found.
/// The number of feasible solutions found.
int num_solutions_;

protected:
Expand All @@ -99,13 +99,21 @@ class SolutionWriterImpl :
ArrayRef<int> options = mp::ArrayRef<int>(0, 0))
: stub_(stub.to_string()), overrideStub_(), solver_(s), builder_(b),
options_(options), num_solutions_(0) {}
// Returns the .sol writer.
/// Returns the .sol writer.
Writer &sol_writer() { return *this; }

/// Writes an intermediate solution to a .sol file.
void HandleFeasibleSolution(int status, fmt::CStringRef message,
const double *values, const double *dual_values, double);

// Writes the solution to a .sol file.
/// Deprecated: no status
void HandleFeasibleSolution(fmt::CStringRef message,
const double *values, const double *dual_values, double obj) {
HandleFeasibleSolution(sol::UNCERTAIN, message,
values, dual_values, obj);
}

/// Writes the solution to a .sol file.
void HandleSolution(int status, fmt::CStringRef message,
const double *values, const double *dual_values, double);

Expand Down

0 comments on commit b376de4

Please sign in to comment.