prop_dualfix.c
Go to the documentation of this file.
22 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/ 37 #define PROP_PRESOL_PRIORITY +8000000 /**< priority of the propagator (>= 0: before, < 0: after constraint handlers) */ 38 #define PROP_PRESOL_MAXROUNDS -1 /**< maximal number of propving rounds the propver participates in (-1: no limit) */ 39 #define PROP_PRESOLTIMING SCIP_PRESOLTIMING_FAST /* timing of the presolving method (fast, medium, or exhaustive) */ 65 * loop backwards, since a variable fixing can change the current and the subsequent slots in the vars array 82 /* ignore already fixed variables (use feasibility tolerance since this is used in SCIPfixVar() */ 122 /* if it is always possible to round variable in direction of objective value, fix it to its proper bound */ 131 /* Fixing variables to infinity is not allowed after presolving, since LP-solvers cannot handle this 137 /* Variable is only contained in one constraint: we hope that the corresponding constraint handler is 138 * clever enough to set/aggregate the variable to something more useful than -infinity and do nothing 154 /* Fixing variables to infinity is not allowed after presolving, since LP-solvers cannot handle this 160 /* Variable is only contained in one constraint: we hope that the corresponding constraint handler is 161 * clever enough to set/aggregate the variable to something more useful than +infinity and do nothing 177 "problem infeasible or unbounded: variable <%s> with objective %.15g can be made infinitely %s\n", 194 assert(fixed || (SCIPgetStage(scip) == SCIP_STAGE_SOLVING && SCIPisFeasEQ(scip, bound, SCIPvarGetLbLocal(var)) 319 SCIP_CALL( SCIPincludePropBasic(scip, &prop, PROP_NAME, PROP_DESC, PROP_PRIORITY, PROP_FREQ, PROP_DELAY, PROP_TIMING, 324 SCIP_CALL( SCIPsetPropPresol(scip, prop, propPresolDualfix, PROP_PRESOL_PRIORITY, PROP_PRESOL_MAXROUNDS, SCIP_RETCODE SCIPfixVar(SCIP *scip, SCIP_VAR *var, SCIP_Real fixedval, SCIP_Bool *infeasible, SCIP_Bool *fixed) Definition: scip.c:22777 Definition: type_result.h:33 Definition: struct_scip.h:53 Definition: type_result.h:49 Definition: type_result.h:38 Definition: struct_var.h:196 SCIP_RETCODE SCIPsetPropCopy(SCIP *scip, SCIP_PROP *prop, SCIP_DECL_PROPCOPY((*propcopy))) Definition: scip.c:6945 Definition: type_result.h:35 SCIP_Bool SCIPisFeasEQ(SCIP *scip, SCIP_Real val1, SCIP_Real val2) Definition: scip.c:41907 Definition: type_retcode.h:33 SCIP_RETCODE SCIPsetPropPresol(SCIP *scip, SCIP_PROP *prop, SCIP_DECL_PROPPRESOL((*proppresol)), int presolpriority, int presolmaxrounds, SCIP_PRESOLTIMING presoltiming) Definition: scip.c:7073 Definition: type_result.h:42 Definition: struct_prop.h:36 Definition: type_message.h:44 SCIP_RETCODE SCIPincludePropBasic(SCIP *scip, SCIP_PROP **propptr, const char *name, const char *desc, int priority, int freq, SCIP_Bool delay, SCIP_PROPTIMING timingmask, SCIP_DECL_PROPEXEC((*propexec)), SCIP_PROPDATA *propdata) Definition: scip.c:6908 Definition: type_set.h:38 void SCIPverbMessage(SCIP *scip, SCIP_VERBLEVEL msgverblevel, FILE *file, const char *formatstr,...) Definition: scip.c:1298 Definition: type_set.h:42 static SCIP_RETCODE performDualfix(SCIP *scip, int *nfixedvars, SCIP_Bool *unbounded, SCIP_Bool *cutoff) Definition: prop_dualfix.c:50 Definition: objbranchrule.h:33 fixing roundable variables to best bound Definition: type_result.h:39 |