summaryrefslogtreecommitdiffhomepage
path: root/ir/lpp
diff options
context:
space:
mode:
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>2016-05-12 15:40:50 +0200
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>2016-05-12 15:40:50 +0200
commita8583be0d6ec050ff34853f4a0268894fac2b8a7 (patch)
tree64ab53eb666d541fcec7cd43ed1ba1c478b03f66 /ir/lpp
parent52e16f28f53699f859eb2f8bdad65cd8caa07985 (diff)
Fix indentation
Diffstat (limited to 'ir/lpp')
-rw-r--r--ir/lpp/lpp.c14
-rw-r--r--ir/lpp/lpp_cplex.c12
2 files changed, 13 insertions, 13 deletions
diff --git a/ir/lpp/lpp.c b/ir/lpp/lpp.c
index 0f88cf2..bdcccf1 100644
--- a/ir/lpp/lpp.c
+++ b/ir/lpp/lpp.c
@@ -55,8 +55,8 @@ lpp_t *lpp_new(const char *name, lpp_opt_t opt_type)
}
lpp_t *lpp_new_userdef(const char *name, lpp_opt_t opt_type,
- int estimated_vars, int estimated_csts,
- double grow_factor)
+ int estimated_vars, int estimated_csts,
+ double grow_factor)
{
lpp_t *lpp;
int idx;
@@ -338,11 +338,11 @@ void lpp_check_startvals(lpp_t *lpp)
int var_idx;
for (var_idx = 1; var_idx < lpp->var_next; ++var_idx) {
- if (lpp->vars[var_idx]->value_kind != lpp_value_start)
- goto next;
+ if (lpp->vars[var_idx]->value_kind != lpp_value_start)
+ goto next;
- sum += lpp->vars[var_idx]->value *
- matrix_get(lpp->m, cst_idx, var_idx);
+ sum += lpp->vars[var_idx]->value *
+ matrix_get(lpp->m, cst_idx, var_idx);
}
switch (cst->type.cst_type) {
case lpp_equal:
@@ -417,7 +417,7 @@ void lpp_dump_plain(lpp_t *lpp, FILE *f)
}
fprintf(f, "%3s %+4.1f\n",
- lpp_cst_op_to_str(cst->type.cst_type), matrix_get(lpp->m, cst->nr, 0));
+ lpp_cst_op_to_str(cst->type.cst_type), matrix_get(lpp->m, cst->nr, 0));
}
fprintf(f, "Binary\n");
diff --git a/ir/lpp/lpp_cplex.c b/ir/lpp/lpp_cplex.c
index 1cdc654..2f5881e 100644
--- a/ir/lpp/lpp_cplex.c
+++ b/ir/lpp/lpp_cplex.c
@@ -139,11 +139,11 @@ static void cpx_construct(cpx_t *cpx)
}
cpx->status = CPXcopylpwnames(cpx->env, cpx->prob,
- numcols, numrows, objsen,
- obj, rhs, sense,
- matbeg, matcnt, matind, matval,
- lb, ub, NULL,
- colname, rowname);
+ numcols, numrows, objsen,
+ obj, rhs, sense,
+ matbeg, matcnt, matind, matval,
+ lb, ub, NULL,
+ colname, rowname);
chk_cpx_err(cpx);
cpx->status = CPXcopyctype(cpx->env, cpx->prob, vartype);
@@ -196,7 +196,7 @@ static void cpx_solve(cpx_t *cpx)
*/
if(lpp->set_bound) {
CPXsetdblparam(cpx->env, (lpp->opt_type == lpp_minimize
- ? CPX_PARAM_OBJLLIM : CPX_PARAM_OBJULIM), lpp->bound);
+ ? CPX_PARAM_OBJLLIM : CPX_PARAM_OBJULIM), lpp->bound);
}
/* turn on the fancy messages :) */