env.env.blockcount = 0;
env.ilpedges = NEW_ARR_F(ilp_edge_t, 0);
- env.lpp = new_lpp("blockschedule", lpp_minimize);
+ env.lpp = lpp_new("blockschedule", lpp_minimize);
lpp_set_time_limit(env.lpp, 20);
lpp_set_log(env.lpp, stdout);
be_get_be_obst(irg));
DEL_ARR_F(env.ilpedges);
- free_lpp(env.lpp);
+ lpp_free(env.lpp);
obstack_free(&obst, NULL);
return block_list;
void free_ilp_env(ilp_env_t *ienv)
{
free_size_red(ienv->sr);
- free_lpp(ienv->lp);
+ lpp_free(ienv->lp);
free(ienv);
}
local_env_t *lenv = ienv->env;
int lower_bound;
- ienv->lp = new_lpp(ienv->co->name, lpp_minimize);
+ ienv->lp = lpp_new(ienv->co->name, lpp_minimize);
build_coloring_cstr(ienv);
build_interference_cstr(ienv);
build_affinity_cstr(ienv);
lpp->density = (double)lpp->n_elems / (double)(lpp->cst_next * lpp->var_next) * 100.0;
}
-lpp_t *new_lpp(const char *name, lpp_opt_t opt_type)
+lpp_t *lpp_new(const char *name, lpp_opt_t opt_type)
{
- return new_lpp_userdef(name, opt_type, 64, 64, 2.0);
+ return lpp_new_userdef(name, opt_type, 64, 64, 2.0);
}
-lpp_t *new_lpp_userdef(const char *name, lpp_opt_t opt_type,
- int estimated_vars, int estimated_csts, double grow_factor)
+lpp_t *lpp_new_userdef(const char *name, lpp_opt_t opt_type,
+ int estimated_vars, int estimated_csts,
+ double grow_factor)
{
lpp_t *lpp;
int idx;
return lpp;
}
-void free_lpp_matrix(lpp_t *lpp)
+void lpp_free_matrix(lpp_t *lpp)
{
del_matrix(lpp->m);
lpp->m = NULL;
}
-void free_lpp(lpp_t *lpp)
+void lpp_free(lpp_t *lpp)
{
obstack_free(&lpp->obst, NULL);
* Implicit row with name "obj" is inserted.
* Implicit col with name "rhs" is inserted.
*/
-lpp_t *new_lpp(const char *name, lpp_opt_t opt_type);
+lpp_t *lpp_new(const char *name, lpp_opt_t opt_type);
/**
* Creates a new problem. Optimization type is minimize or maximize.
* @param grow_factor By which factor should the problem grow, if there are
* more variables or constraints than estimated.
*/
-lpp_t *new_lpp_userdef(const char *name, lpp_opt_t opt_type,
- int estimated_vars, int estimated_csts, double grow_factor);
+lpp_t *lpp_new_userdef(const char *name, lpp_opt_t opt_type,
+ int estimated_vars, int estimated_csts,
+ double grow_factor);
/**
* Frees the matrix embedded in the LPP.
*/
-void free_lpp_matrix(lpp_t *lpp);
+void lpp_free_matrix(lpp_t *lpp);
/**
* Frees all memory allocated for LPP data structure.
*/
-void free_lpp(lpp_t *lpp);
+void lpp_free(lpp_t *lpp);
/**
* @return The constant term in the objective function
chk_cpx_err(cpx);
obstack_free(&obst, NULL);
- free_lpp_matrix(lpp);
+ lpp_free_matrix(lpp);
}
static void cpx_solve(cpx_t *cpx)
check_gurobi_error(grb, error);
obstack_free(&obst, NULL);
- free_lpp_matrix(lpp);
+ lpp_free_matrix(lpp);
}
static void gurobi_solve(gurobi_t *grb)