nlsic

Non Linear Least Squares with Inequality Constraints

CRAN Package

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.


Documentation


Team


Insights

Last 30 days

This package has been downloaded 270 times in the last 30 days. More than a random curiosity, but not quite a blockbuster. Still, it's gaining traction! The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 5 times.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
0 downloadsMar 16, 2025
0 downloadsMar 17, 2025
0 downloadsMar 18, 2025
0 downloadsMar 19, 2025
0 downloadsMar 20, 2025
0 downloadsMar 21, 2025
7 downloadsMar 22, 2025
7 downloadsMar 23, 2025
8 downloadsMar 24, 2025
6 downloadsMar 25, 2025
5 downloadsMar 26, 2025
4 downloadsMar 27, 2025
11 downloadsMar 28, 2025
2 downloadsMar 29, 2025
9 downloadsMar 30, 2025
2 downloadsMar 31, 2025
7 downloadsApr 1, 2025
10 downloadsApr 2, 2025
3 downloadsApr 3, 2025
8 downloadsApr 4, 2025
8 downloadsApr 5, 2025
8 downloadsApr 6, 2025
18 downloadsApr 7, 2025
6 downloadsApr 8, 2025
12 downloadsApr 9, 2025
3 downloadsApr 10, 2025
14 downloadsApr 11, 2025
24 downloadsApr 12, 2025
4 downloadsApr 13, 2025
18 downloadsApr 14, 2025
17 downloadsApr 15, 2025
12 downloadsApr 16, 2025
15 downloadsApr 17, 2025
13 downloadsApr 18, 2025
4 downloadsApr 19, 2025
5 downloadsApr 20, 2025
0 downloadsApr 21, 2025
0 downloadsApr 22, 2025
0 downloadsApr 23, 2025
0 downloadsApr 24, 2025
0 downloadsApr 25, 2025
0 downloadsApr 26, 2025
2
24

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Last 365 days

This package has been downloaded 3,110 times in the last 365 days. Consider this 'mid-tier influencer' status—if it were a TikTok, it would get a nod from nieces and nephews. The day with the most downloads was Sep 11, 2024 with 30 downloads.

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Data provided by CRAN


Binaries


Dependencies

  • Depends1 package
  • Suggests3 packages
  • Reverse Imports1 package