Skip to content

Commit

Permalink
New CRAN version 1.1.2-4 Revert back initialization in lp_presolve
Browse files Browse the repository at this point in the history
  • Loading branch information
vissarion committed Apr 3, 2023
1 parent 3a79275 commit 5ec57dd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R-proj/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Description: Provides an R interface for 'volesti' C++ package. 'volesti' comput
for sampling, rounding and rotating polytopes. Moreover, 'volesti' provides algorithms for
estimating copulas useful in computational finance. Methods implemented in 'volesti' are described
in A. Chalkis and V. Fisikopoulos (2022) <doi:10.32614/RJ-2021-077> and references therein.
Version: 1.1.2-3
Date: 2022-10-12
Version: 1.1.2-4
Date: 2022-04-03
Maintainer: Vissarion Fisikopoulos <vissarion.fisikopoulos@gmail.com>
Depends: Rcpp (>= 0.12.17)
Imports: methods, stats
Expand Down
4 changes: 2 additions & 2 deletions R-proj/src/Rproj_externals/lp_solve/lp_presolve.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,13 @@ STATIC MYBOOL presolve_rebuildUndo(lprec *lp, MYBOOL isprimal)
if(isprimal) {
if(psdata->primalundo != NULL)
mat = psdata->primalundo->tracker;
//solution = lp->full_solution + lp->presolve_undo->orig_rows; // Comment out by Apostolos Chalkis
solution = lp->full_solution + lp->presolve_undo->orig_rows; // Comment out by Apostolos Chalkis
slacks = lp->full_solution;
}
else {
if(psdata->dualundo != NULL)
mat = psdata->dualundo->tracker;
//solution = lp->full_duals; // Comment out by Apostolos Chalkis
solution = lp->full_duals; // Comment out by Apostolos Chalkis
slacks = lp->full_duals + lp->presolve_undo->orig_rows;
}
if(mat == NULL)
Expand Down
4 changes: 4 additions & 0 deletions cran_gen/NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@
# volesti 1.1.2-3

- Remove unneeded-internal-declaration warning in clang-15

# volesti 1.1.2-4

- Remove uninitialized warning in clang-16 (lp_presolve)

0 comments on commit 5ec57dd

Please sign in to comment.