ompr 1.0.4
CRAN release: 2023-09-09
- Improves the package documentation to use the correct alias.
- Ompr now requires R 3.5.0 because some dependencies require that now.
ompr 1.0.3
CRAN release: 2022-09-11
Bugfixes
-
extract_constraints()previously created explicit 0 values in the sparse matrix. They are now implicit.
ompr 1.0.2
CRAN release: 2022-01-31
Bugfixes
- Fixed a bug where
get_solutionreturns incorrect results on R version< 4. Affected package versions are1.0.0and1.0.1. (#404)
General changes
- Model-building is now significantly faster
- Constraints without variables that evaluate to
TRUEare not added to the model, as they are always satisfied. Likewise, constraints that evaluate toFALSEthrow an error. Previously specifying a constraint without a variable would have caused a run time error. - The minimum required R version is now
3.4as {ompr.roi} has the same minimum R version.
ompr 1.0.0
CRAN release: 2022-01-26
General changes
- Rewrote the
MIPModel. It should now be faster, more maintainable, more stable and it has fewer bugs. - Added
sum_over, a replacement forsum_exprin theMIPModel -
set_boundsforMIPModelnow accepts (in)equalities as well (#365) -
MIPModelnow supports characters as variable indexes - A
solutionobject has a new named entry calledadditional_solver_output. In that place solver packages, likeompr.roican store arbitrary solver information. Including solver specific messages and status codes. It should be read using the functionadditional_solver_output(). - A
solutioncan now have thesolver_status = "success"which is used by the most recentompr.roiversion.
Deprecations
All listed functions will likely be removed at some later point the future.
-
sum_exprshall not be used anymore. Please usesum_overinstead. -
MIPLModelwill likely be removed from the package, as the vectorized approach did lead to some problems. Please useMIPModelinstead. -
add_variable_,add_constraint_,set_objective_,set_boundsandget_solution_are not needed anymore with the newMIPModelas it is powered byrlang. - The
.show_progress_barparameter is now deprecated in all functions.
Licensing
- ompr is now licensed under the MIT license (#353).
Breaking Changes
-
extract_constraintsnow always returns a sparse matrix, even if there are 0 constraints or variables. - The row ordering of the
data.framereturned withget_solution(x[i, j])has slightly changed in special cases, but for the majority of calls, it should stay the same. One of these special cases is if you created your variable similar toadd_variable(model, x[i, j], j = ..., i = ...), where the indexes in the variable and the quantifiers have different orderings. In general, please do not depend on the ordering of the rows, but use the indexes to retrieve the correct value. For example by sorting thedata.frame, before reading.
ompr 0.8.1
CRAN release: 2020-12-04
General changes
- You can now assign coefficients to all column/row combinations using
colwisein the experimentalMILPModelbackend. - Non-existent indexes in
sum_exprnow produce a warning instead of an error. The missing indexes will be ignored (#202).
Bugfixes
- Fixed a bug were
get_solutioncould return mixed up values when variables had partially similar names (eg:s[i]andbus[i]) by @hugolarzabal (#244). - Fixed a bug on where an if-condition had an input with
length != 1. - Fixed some minor issues with newer
data.tableversions
ompr 0.8.0
CRAN release: 2018-06-11
General changes
- Removed
dplyrdependency - Added
MILPModel, a new, vectorized backend for mixed integer linear programs that can handle very large models. It will eventually replaceMIPModel. - Added two functions (
get_column_duals,get_row_duals) to extract the dual (column and row) values from an LP. - The minimum supported R version is now
3.2.0 -
get_solutionnow always return a solution, even if the solution status is not optimal. -
get_solutionhas a third argumenttypewith permitted values being “primal” and “dual” to return the respective column primal or dual values.
Bugfixes
- You can now extract solutions of indexed variables that have length one (#198)
ompr 0.7.0
CRAN release: 2017-11-17