diff options
| author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2012-10-01 07:39:53 -0400 |
|---|---|---|
| committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2013-02-12 06:55:16 -0500 |
| commit | 96683d88c8c774bf75214438a6a4ea8955b329de (patch) | |
| tree | 77084a510b5816ad3075d7b0d23791fb6dec257d /native/src | |
| parent | 5a7cba3cc5e17fec43285997eb519eb3c2da40f7 (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')
| -rw-r--r-- | native/src/blocking/linprog/lp_common.cpp | 5 |
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] |
