#include <fstream>
#include <algorithm>
#include "BCP_tm.hpp"
#include "MC_init.hpp"
#include "MC_cut.hpp"
#include "MC_tm.hpp"
#include "MC_lp.hpp"
Include dependency graph for MC_init.cpp:
Go to the source code of this file.
Typedefs | |
typedef std::pair< int, int > | intpair |
Functions | |
USER_initialize * | BCP_user_init () |
void | MC_read_parameters (MC_tm &tm, const char *paramfile) |
void | MC_readproblem (MC_tm &tm) |
int | MC_components (const int n, const int m, const MC_graph_edge *edges, int *component) |
static void | MC_fill_structure (const MC_problem &mc, MC_switch_structure &swstruct, const int num_nodes, const int *nodes) |
static bool | operator< (const intpair &ip0, const intpair &ip1) |
typedef std::pair<int,int> intpair |
Definition at line 197 of file MC_init.cpp.
USER_initialize* BCP_user_init | ( | ) |
Definition at line 15 of file MC_init.cpp.
void MC_read_parameters | ( | MC_tm & | tm, | |
const char * | paramfile | |||
) |
Definition at line 104 of file MC_init.cpp.
References MC_tm::lp_par, BCP_parameter_set< Par >::read_from_file(), and MC_tm::tm_par.
Referenced by MC_initialize::tm_init().
void MC_readproblem | ( | MC_tm & | tm | ) |
Definition at line 206 of file MC_init.cpp.
References MC_graph_edge::cost, MC_tm_par::DigitsToLose, MC_problem::edges, BCP_parameter_set< Par >::entry(), MC_graph_edge::head, MC_tm_par::InputFile, MC_problem::ising_problem, k, m, MC_tm::mc, MC_components(), n, MC_problem::num_edges, MC_problem::num_nodes, MC_problem::scaling_factor, MC_graph_edge::tail, and MC_tm::tm_par.
Referenced by MC_initialize::tm_init().
int MC_components | ( | const int | n, | |
const int | m, | |||
const MC_graph_edge * | edges, | |||
int * | component | |||
) |
Definition at line 113 of file MC_init.cpp.
References MC_graph_edge::head, and k.
Referenced by MC_readproblem().
static void MC_fill_structure | ( | const MC_problem & | mc, | |
MC_switch_structure & | swstruct, | |||
const int | num_nodes, | |||
const int * | nodes | |||
) | [static] |
Definition at line 166 of file MC_init.cpp.
References MC_graph_node::adj_list, MC_graph_node::degree, and MC_problem::nodes.
Definition at line 200 of file MC_init.cpp.