neighbours
Neighbourhood Functions for Local-Search Algorithms
Description
Neighbourhood functions are key components of local-search algorithms such as Simulated Annealing or Threshold Accepting. These functions take a solution and return a slightly-modified copy of it, i.e. a neighbour. The package provides a function neighbourfun() that constructs such neighbourhood functions, based on parameters such as admissible ranges for elements in a solution. Supported are numeric and logical solutions. The algorithms were originally created for portfolio-optimisation applications, but can be used for other models as well. Several recipes for neighbour computations are taken from "Numerical Methods and Optimization in Finance" by M. Gilli, D. Maringer and E. Schumann (2019, ISBN:978-0128150658).
Downloads
476
Last 30 days
8153rd
986
Last 90 days
3.2K
Last year
Trend: +70% (30d vs prior 30d)
CRAN Check Status
Show all 14 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-macos-arm64 | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | WARNING |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | WARNING |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (2 non-OK)
re-building of vignette outputs
Error(s) in re-building vignettes:
--- re-building ‘neighbours.Rnw’ using Sweave
Loading required namespace: NMOF
Loading required namespace: quadprog
Error: processing vignette 'neighbours.Rnw' failed with diagnostics:
Running 'texi2dvi' on 'neighbours.tex' failed.
LaTeX errors:
! LaTeX Error: File `sfmath.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
! Emergency stop.
<read *>
l.11 \usepackage
{hyperref}^^M
! ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘neighbours.Rnw’
SUMMARY: processing the following file failed:
‘neighbours.Rnw’
Error: Vignette re-building failed.
Execution halted
re-building of vignette outputs
Error(s) in re-building vignettes:
--- re-building ‘neighbours.Rnw’ using Sweave
Loading required namespace: NMOF
Loading required namespace: quadprog
Error: processing vignette 'neighbours.Rnw' failed with diagnostics:
Running 'texi2dvi' on 'neighbours.tex' failed.
LaTeX errors:
! LaTeX Error: File `sfmath.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
! Emergency stop.
<read *>
l.11 \usepackage
{hyperref}^^M
! ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘neighbours.Rnw’
SUMMARY: processing the following file failed:
‘neighbours.Rnw’
Error: Vignette re-building failed.
Execution halted
Check History
WARNING 12 OK · 0 NOTE · 2 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
re-building of vignette outputs
Error(s) in re-building vignettes:
--- re-building ‘neighbours.Rnw’ using Sweave
Loading required namespace: NMOF
Loading required namespace: quadprog
Error: processing vignette 'neighbours.Rnw' failed with diagnostics:
Running 'texi2dvi' on 'neighbo
...[truncated]...
e
{hyperref}^^M
! ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘neighbours.Rnw’
SUMMARY: processing the following file failed:
‘neighbours.Rnw’
Error: Vignette re-building failed.
Execution halted
re-building of vignette outputs
Error(s) in re-building vignettes:
--- re-building ‘neighbours.Rnw’ using Sweave
Loading required namespace: NMOF
Loading required namespace: quadprog
Error: processing vignette 'neighbours.Rnw' failed with diagnostics:
Running 'texi2dvi' on 'neighbo
...[truncated]...
e
{hyperref}^^M
! ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘neighbours.Rnw’
SUMMARY: processing the following file failed:
‘neighbours.Rnw’
Error: Vignette re-building failed.
Execution halted