#include <MC_solution.hpp>
Inheritance diagram for MC_solution:
Public Member Functions | |
MC_solution (const BCP_vec< int > &sign, const MC_problem &mc, const int heurswitchround, const bool do_edge_switch_heur, const int struct_switch_heur) | |
MC_solution () | |
~MC_solution () | |
virtual double | objective_value () const |
The method returning the objective value of the solution. | |
MC_solution & | operator= (const MC_solution &sol) |
BCP_buffer & | pack (BCP_buffer &buf) const |
BCP_buffer & | unpack (BCP_buffer &buf) |
void | display (const BCP_string &fname) const |
double | compute_cost (const int m, const MC_graph_edge *edges) |
double | switch_improve (const MC_problem &mc, const int maxiter) |
double | edge_switch_improve (const MC_problem &mc, const int maxiter) |
double | ising_with_external_edge_switch_improve (const MC_problem &mc, const int maxiter) |
double | lk_switch_improve (const MC_problem &mc, const int maxiter) |
double | structure_switch_improve (const MC_problem &mc, const int struct_ind, const int maxiter) |
MC_solution (const BCP_vec< int > &sign, const MC_problem &mc, const int heurswitchround, const bool do_edge_switch_heur, const int struct_switch_heur) | |
MC_solution () | |
~MC_solution () | |
virtual double | objective_value () const |
The method returning the objective value of the solution. | |
MC_solution & | operator= (const MC_solution &sol) |
BCP_buffer & | pack (BCP_buffer &buf) const |
BCP_buffer & | unpack (BCP_buffer &buf) |
void | display (const BCP_string &fname) const |
double | compute_cost (const int m, const MC_graph_edge *edges) |
double | switch_improve (const MC_problem &mc, const int maxiter) |
double | edge_switch_improve (const MC_problem &mc, const int maxiter) |
double | ising_with_external_edge_switch_improve (const MC_problem &mc, const int maxiter) |
double | lk_switch_improve (const MC_problem &mc, const int maxiter) |
double | structure_switch_improve (const MC_problem &mc, const int struct_ind, const int maxiter) |
Public Attributes | |
double | cost |
BCP_vec< int > | sig |
BCP_vec< int > | sig |
Definition at line 14 of file MC_solution.hpp.
MC_solution::MC_solution | ( | const BCP_vec< int > & | sign, | |
const MC_problem & | mc, | |||
const int | heurswitchround, | |||
const bool | do_edge_switch_heur, | |||
const int | struct_switch_heur | |||
) |
MC_solution::MC_solution | ( | ) | [inline] |
Definition at line 24 of file MC_solution.hpp.
MC_solution::~MC_solution | ( | ) | [inline] |
Definition at line 25 of file MC_solution.hpp.
MC_solution::MC_solution | ( | const BCP_vec< int > & | sign, | |
const MC_problem & | mc, | |||
const int | heurswitchround, | |||
const bool | do_edge_switch_heur, | |||
const int | struct_switch_heur | |||
) |
MC_solution::MC_solution | ( | ) | [inline] |
Definition at line 24 of file MC_solution.hpp.
MC_solution::~MC_solution | ( | ) | [inline] |
Definition at line 25 of file MC_solution.hpp.
virtual double MC_solution::objective_value | ( | ) | const [inline, virtual] |
The method returning the objective value of the solution.
Implements BCP_solution.
Definition at line 27 of file MC_solution.hpp.
References cost.
MC_solution& MC_solution::operator= | ( | const MC_solution & | sol | ) |
BCP_buffer& MC_solution::pack | ( | BCP_buffer & | buf | ) | const |
BCP_buffer& MC_solution::unpack | ( | BCP_buffer & | buf | ) |
void MC_solution::display | ( | const BCP_string & | fname | ) | const |
double MC_solution::compute_cost | ( | const int | m, | |
const MC_graph_edge * | edges | |||
) |
double MC_solution::switch_improve | ( | const MC_problem & | mc, | |
const int | maxiter | |||
) |
double MC_solution::edge_switch_improve | ( | const MC_problem & | mc, | |
const int | maxiter | |||
) |
double MC_solution::ising_with_external_edge_switch_improve | ( | const MC_problem & | mc, | |
const int | maxiter | |||
) |
double MC_solution::lk_switch_improve | ( | const MC_problem & | mc, | |
const int | maxiter | |||
) |
double MC_solution::structure_switch_improve | ( | const MC_problem & | mc, | |
const int | struct_ind, | |||
const int | maxiter | |||
) |
virtual double MC_solution::objective_value | ( | ) | const [inline, virtual] |
The method returning the objective value of the solution.
Implements BCP_solution.
Definition at line 27 of file MC_solution.hpp.
References cost.
MC_solution& MC_solution::operator= | ( | const MC_solution & | sol | ) |
BCP_buffer& MC_solution::pack | ( | BCP_buffer & | buf | ) | const |
BCP_buffer& MC_solution::unpack | ( | BCP_buffer & | buf | ) |
void MC_solution::display | ( | const BCP_string & | fname | ) | const |
double MC_solution::compute_cost | ( | const int | m, | |
const MC_graph_edge * | edges | |||
) |
double MC_solution::switch_improve | ( | const MC_problem & | mc, | |
const int | maxiter | |||
) |
double MC_solution::edge_switch_improve | ( | const MC_problem & | mc, | |
const int | maxiter | |||
) |
double MC_solution::ising_with_external_edge_switch_improve | ( | const MC_problem & | mc, | |
const int | maxiter | |||
) |
double MC_solution::lk_switch_improve | ( | const MC_problem & | mc, | |
const int | maxiter | |||
) |
double MC_solution::structure_switch_improve | ( | const MC_problem & | mc, | |
const int | struct_ind, | |||
const int | maxiter | |||
) |
double MC_solution::cost |
BCP_vec<int> MC_solution::sig |
Definition at line 17 of file MC_solution.hpp.
BCP_vec<int> MC_solution::sig |
Definition at line 17 of file MC_solution.hpp.