Skip to content

nlsic

1.2.0

Non Linear Least Squares with Inequality Constraints

2packages depend
4.4Kdownloads / year
44.2%test coverage
13/13checks pass

Overview

About
Maintained by Serguei SokolFirst published 2022-01-116 releasesCRAN page ↗GitHub ↗

We solve non linear least squares problems with optional equality and/or inequality constraints. Non linear iterations are globalized with back-tracking method. Linear problems are solved by dense QR decomposition from 'LAPACK' which can limit the size of treated problems. On the other side, we avoid condition number degradation which happens in classical quadratic programming approach. Inequality constraints treatment on each non linear iteration is based on 'NNLS' method (by Lawson and Hanson). We provide an original function 'lsi_ln' for solving linear least squares problem with inequality constraints in least norm sens. Thus if Jacobian of the problem is rank deficient a solution still can be provided. However, truncation errors are probable in this case. Equality constraints are treated by using a basis of Null-space. User defined function calculating residuals must return a list having residual vector (not their squared sum) and Jacobian. If Jacobian is not in the returned list, package 'numDeriv' is used to calculated finite difference version of Jacobian. The 'NLSIC' method was fist published in Sokol et al. (2012) doi:10.1093/bioinformatics/btr716.

Install

Health

CRAN checks
13OK
Slowest check: 1.1 min · r-oldrel-macos-x86_64
Code health
Yes
Tests · ratio 0.01
44.2%
Coverage · measured lines
100%
Documentation · exports
3
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

4.4K
CRAN downloads in the past year
Rank #12,260 · ~12/day · ~363/mo
Daily download trend is not available in this view yet.
18830 days
80990 days
4.4K1 year
Compare downloads with other packages →
Also on146 r2u20 autocran1.6K conda_forge42 c2d4u

Repository

Repository
1Stars
0Forks
0Open issues
0Open PRs
0Releases
10Commits
1Contributors
10 commits · Last activity 2026-01-27

Stars over time

2023-07-06 · 12026-07-07 · 1

Repository practices

Upstream repositoryBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/mathscell/nlsic on 2026-08-16.

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)
Depends (3)
Imports (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
2direct
0indirect

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

6 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.2.0Latest
    2026-01-28 · current release · diff ↗
  • 1.1.1
    2025-06-27 · diff ↗
  • 1.1.0
    2025-05-16 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0.4
    2023-06-26 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 1.0.2
    2022-04-12 · diff ↗
  • 1.0.1
    2022-01-11
  • R
    R 4.1.0 released · 2021-05-18

Package metadata

First published
2022-01-11
Total releases
6 / 4 yrs
License
GPL-2 OSI
Download size
25 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("nlsic")
Sokol, S. (2026). nlsic: Non Linear Least Squares with Inequality Constraints (Version 1.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.nlsic

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for nlsic version 1.2.0 [Data set]. HJJB, LLC. Data release v2026-08-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy