aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/blocking/linprog/lp_common.cpp
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2012-10-01 07:39:53 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2013-02-12 06:55:16 -0500
commit96683d88c8c774bf75214438a6a4ea8955b329de (patch)
tree77084a510b5816ad3075d7b0d23791fb6dec257d /native/src/blocking/linprog/lp_common.cpp
parent5a7cba3cc5e17fec43285997eb519eb3c2da40f7 (diff)
Disable creation of new variables after creation of the objective function
This can reveal bugs in constraints that accidentally include Ti.
Diffstat (limited to 'native/src/blocking/linprog/lp_common.cpp')
-rw-r--r--native/src/blocking/linprog/lp_common.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/native/src/blocking/linprog/lp_common.cpp b/native/src/blocking/linprog/lp_common.cpp
index 808ff28..eca5cc2 100644
--- a/native/src/blocking/linprog/lp_common.cpp
+++ b/native/src/blocking/linprog/lp_common.cpp
@@ -59,6 +59,11 @@ void set_blocking_objective(
59 } 59 }
60 } 60 }
61 } 61 }
62#ifndef CONFIG_MERGED_LINPROGS
63 // We have enumerated all relevant variables. Do not allow any more to
64 // be created.
65 vars.seal();
66#endif
62} 67}
63 68
64// Constraint 1 in [Brandenburg 2013] 69// Constraint 1 in [Brandenburg 2013]