2 * This file is part of libFirm.
3 * Copyright (C) 2012 University of Karlsruhe.
8 * @brief Partitioned Boolean Quadratic Problem (PBQP) solver.
10 * @author Sebastian Buchwald
18 * Create an empty PBQP instance with the given number of nodes.
20 pbqp_t* alloc_pbqp(unsigned number_nodes);
23 * Free the given PBQP.
25 void free_pbqp(pbqp_t *pbqp);
28 * Add costs vector to given node.
30 void add_node_costs(pbqp_t *pbqp, unsigned node_index, vector_t *costs);
33 * Add costs matrix between given nodes.
35 void add_edge_costs(pbqp_t *pbqp, unsigned src_index, unsigned tgt_index,
36 pbqp_matrix_t *costs);
38 pbqp_edge_t *get_edge(pbqp_t *pbqp, unsigned src_index, unsigned tgt_index);
39 pbqp_node_t *get_node(pbqp_t *pbqp, unsigned index);
41 num get_node_solution(pbqp_t *pbqp, unsigned node_index);
42 num get_solution(pbqp_t *pbqp);
44 void set_dumpfile(pbqp_t *pbqp, FILE *f);
46 #endif /* KAPS_KAPS_H */