coin-Bcp
MKC_solution.hpp
Go to the documentation of this file.
1 // Copyright (C) 2000, International Business Machines
2 // Corporation and others. All Rights Reserved.
3 #ifndef _MKC_SOLUTION_H
4 #define _MKC_SOLUTION_H
5 
6 #include "BCP_vector.hpp"
7 #include "BCP_solution.hpp"
8 
9 class MKC_var;
10 class BCP_buffer;
11 
12 //#############################################################################
13 
14 class MKC_solution : public BCP_solution {
15 public:
16  double _objective;
18 public:
19  MKC_solution(BCP_vec<MKC_var*>& vars, const double obj);
21  ~MKC_solution();
22 
23  inline double objective_value() const { return _objective; }
24 
25  void pack(BCP_buffer& buf) const;
26 };
27 
28 
29 
30 #endif
double _objective
double objective_value() const
The method returning the objective value of the solution.
BCP_vec< MKC_var * > _vars
MKC_solution(BCP_vec< MKC_var * > &vars, const double obj)
This class describes the message buffer used for all processes of BCP.
Definition: BCP_buffer.hpp:39
void pack(BCP_buffer &buf) const
This is the abstract base class for a solution to a Mixed Integer Programming problem.