{
  "_id": "6a16a0b5acfb0bcc41d81145",
  "Package": "nlsic",
  "Title": "Non Linear Least Squares with Inequality Constraints",
  "Version": "1.2.0",
  "Authors@R": "person(given = \"Serguei\",\nfamily = \"Sokol\",\nrole = c(\"aut\", \"cre\"),\nemail = \"sokol@insa-toulouse.fr\",\ncomment = c(ORCID = \"0000-0002-5674-3327\"))",
  "Maintainer": "Serguei Sokol <sokol@insa-toulouse.fr>",
  "Description": "We solve non linear least squares problems with optional\nequality and/or inequality constraints. Non linear iterations\nare globalized with back-tracking method. Linear problems are\nsolved by dense QR decomposition from 'LAPACK' which can limit\nthe size of treated problems. On the other side, we avoid\ncondition number degradation which happens in classical\nquadratic programming approach. Inequality constraints\ntreatment on each non linear iteration is based on 'NNLS'\nmethod (by Lawson and Hanson). We provide an original function\n'lsi_ln' for solving linear least squares problem with\ninequality constraints in least norm sens. Thus if Jacobian of\nthe problem is rank deficient a solution still can be provided.\nHowever, truncation errors are probable in this case. Equality\nconstraints are treated by using a basis of Null-space. User\ndefined function calculating residuals must return a list\nhaving residual vector (not their squared sum) and Jacobian. If\nJacobian is not in the returned list, package 'numDeriv' is\nused to calculated finite difference version of Jacobian. The\n'NLSIC' method was fist published in Sokol et al. (2012)\n<doi:10.1093/bioinformatics/btr716>.",
  "License": "GPL-2",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "URL": "https://github.com/MathsCell/nlsic",
  "BugReports": "https://github.com/MathsCell/nlsic/issues",
  "Repository": "https://mathscell.r-universe.dev",
  "Date/Publication": "2026-01-27 10:32:26 UTC",
  "RemoteUrl": "https://github.com/mathscell/nlsic",
  "RemoteRef": "HEAD",
  "RemoteSha": "b1b32708e866fc72a7a5c78a0240e482fc1df1df",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-27 07:40:48 UTC",
    "User": "root"
  },
  "Author": "Serguei Sokol [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-5674-3327>)",
  "MD5sum": "c5e8eda87f55729888f4c4f52c1a816a",
  "_user": "mathscell",
  "_type": "src",
  "_file": "nlsic_1.2.0.tar.gz",
  "_fileid": "077492c9d0c2a0271a350d1f05a7987828430eda600b8ed84faf03ec001e90b3",
  "_filesize": 144285,
  "_sha256": "077492c9d0c2a0271a350d1f05a7987828430eda600b8ed84faf03ec001e90b3",
  "_created": "2026-05-27T07:40:48.000Z",
  "_published": "2026-05-27T07:43:49.536Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78030330068,
      "time": 103,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7234673504"
    },
    {
      "job": 78030330105,
      "time": 99,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7234672275"
    },
    {
      "job": 78030330083,
      "time": 147,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7234680284"
    },
    {
      "job": 78030330092,
      "time": 126,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7234673206"
    },
    {
      "job": 78029886439,
      "time": 175,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7234637580"
    },
    {
      "job": 78030330104,
      "time": 86,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7234667954"
    },
    {
      "job": 78030330147,
      "time": 74,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7234664191"
    },
    {
      "job": 78030330118,
      "time": 66,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7234661587"
    },
    {
      "job": 78030330115,
      "time": 70,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7234662494"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mathscell/actions/runs/26497685693",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/mathscell/nlsic",
  "_commit": {
    "id": "b1b32708e866fc72a7a5c78a0240e482fc1df1df",
    "author": "Serguei Sokol <sokol@insa-toulouse.fr>",
    "committer": "Serguei Sokol <sokol@insa-toulouse.fr>",
    "message": "v1.2.0 added jacobian reuse\n\nSigned-off-by: Serguei Sokol <sokol@insa-toulouse.fr>\n",
    "time": 1769509946
  },
  "_maintainer": {
    "name": "Serguei Sokol",
    "email": "sokol@insa-toulouse.fr",
    "login": "sgsokol",
    "orcid": "0000-0002-5674-3327",
    "description": "",
    "uuid": 9048783
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "nnls",
      "role": "Depends"
    },
    {
      "package": "dotty",
      "role": "Depends"
    },
    {
      "package": "glue",
      "role": "Depends"
    },
    {
      "package": "numDeriv",
      "role": "Suggests"
    },
    {
      "package": "RUnit",
      "role": "Suggests"
    },
    {
      "package": "limSolve",
      "role": "Suggests"
    }
  ],
  "_owner": "mathscell",
  "_selfowned": true,
  "_usedby": 2,
  "_updates": [
    {
      "week": "2025-26",
      "n": 1
    },
    {
      "week": "2026-05",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v1.1.1",
      "date": "2025-06-27"
    }
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "sgsokol",
      "count": 10,
      "uuid": 9048783
    }
  ],
  "_userbio": {
    "uuid": 80681803,
    "type": "user",
    "name": "MathsCell"
  },
  "_downloads": {
    "count": 267,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/nlsic"
  },
  "_devurl": "https://github.com/mathscell/nlsic",
  "_searchresults": 4,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/nlsic.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/mathscell/nlsic",
  "_realowner": "mathscell",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.1",
      "date": "2022-01-11"
    },
    {
      "version": "1.0.2",
      "date": "2022-04-12"
    },
    {
      "version": "1.0.4",
      "date": "2023-06-26"
    },
    {
      "version": "1.1.0",
      "date": "2025-05-16"
    },
    {
      "version": "1.1.1",
      "date": "2025-06-27"
    },
    {
      "version": "1.2.0",
      "date": "2026-01-28"
    }
  ],
  "_exports": [
    "equa2vecmat",
    "g",
    "join",
    "ldp",
    "ls_ln",
    "ls_ln_svd",
    "lsi",
    "lsi_ln",
    "lsi_reg",
    "lsie_ln",
    "nlsic",
    "Nulla",
    "pnull",
    "tls",
    "uplo2uco"
  ],
  "_help": [
    {
      "page": "equa2vecmat",
      "title": "Parse linear equations/inequalities",
      "topics": [
        "equa2vecmat"
      ]
    },
    {
      "page": "g",
      "title": "Shortcut for glue::glue extrapolating character strings",
      "topics": [
        "g"
      ]
    },
    {
      "page": "join",
      "title": "Join elements into a string",
      "topics": [
        "join"
      ]
    },
    {
      "page": "ldp",
      "title": "Least Distance Problem",
      "topics": [
        "ldp"
      ]
    },
    {
      "page": "ls_0",
      "title": "Particular solution of rank-deficient least squares",
      "topics": [
        "ls_0"
      ]
    },
    {
      "page": "ls_ln",
      "title": "Linear Least Squares, least norm solution",
      "topics": [
        "ls_ln"
      ]
    },
    {
      "page": "ls_ln_svd",
      "title": "Linear Least Squares, least norm solution (by svd)",
      "topics": [
        "ls_ln_svd"
      ]
    },
    {
      "page": "lsi",
      "title": "Linear Least Squares with Inequality constraints (LSI)",
      "topics": [
        "lsi"
      ]
    },
    {
      "page": "lsi_ln",
      "title": "Linear Least Squares with Inequality constraints, least norm solution",
      "topics": [
        "lsi_ln"
      ]
    },
    {
      "page": "lsi_reg",
      "title": "Regularized Linear Least Squares",
      "topics": [
        "lsi_reg"
      ]
    },
    {
      "page": "lsie_ln",
      "title": "Linear Least Squares problem with inequality and equality constraints, least norm solution",
      "topics": [
        "lsie_ln"
      ]
    },
    {
      "page": "nlsic",
      "title": "Non Linear Least Squares with Inequality Constraints",
      "topics": [
        "nlsic"
      ]
    },
    {
      "page": "Nulla",
      "title": "Null-space basis",
      "topics": [
        "Nulla"
      ]
    },
    {
      "page": "pnull",
      "title": "Particular least-squares solution and Null-space basis",
      "topics": [
        "pnull"
      ]
    },
    {
      "page": "tls",
      "title": "Total Least Squares 'a%*%x ~= b'",
      "topics": [
        "tls"
      ]
    },
    {
      "page": "uplo2uco",
      "title": "Transform box-type inequalities into matrix and vector form",
      "topics": [
        "uplo2uco"
      ]
    }
  ],
  "_rundeps": [
    "dotty",
    "glue",
    "nnls"
  ],
  "_score": 3.0791812460476247,
  "_indexed": true,
  "_nocasepkg": "nlsic",
  "_universes": [
    "mathscell",
    "sgsokol"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.0",
      "date": "2026-05-27T07:42:39.000Z",
      "distro": "noble",
      "commit": "b1b32708e866fc72a7a5c78a0240e482fc1df1df",
      "fileid": "e9c4de99664ee4d1598a4f12cbbc2531e35e4248ef6e74eaa71ae3f7043c71f3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathscell/actions/runs/26497685693"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.0",
      "date": "2026-05-27T07:42:36.000Z",
      "distro": "noble",
      "commit": "b1b32708e866fc72a7a5c78a0240e482fc1df1df",
      "fileid": "159125658891202b8fd29d570aa30512c2fc0b061d207e104b70b446f3cb327f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathscell/actions/runs/26497685693"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.0",
      "date": "2026-05-27T07:43:03.000Z",
      "commit": "b1b32708e866fc72a7a5c78a0240e482fc1df1df",
      "fileid": "89526dd29e39332a373f46a0d5d8cf829b00d3ee0d59132ec24e8c512f55a2d9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathscell/actions/runs/26497685693"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.0",
      "date": "2026-05-27T07:42:40.000Z",
      "commit": "b1b32708e866fc72a7a5c78a0240e482fc1df1df",
      "fileid": "50b8eace2ddff3078e8a794e45b798d644f51bd69a5863e8b3774d2c7fbcf352",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathscell/actions/runs/26497685693"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.0",
      "date": "2026-05-27T07:42:35.000Z",
      "commit": "b1b32708e866fc72a7a5c78a0240e482fc1df1df",
      "fileid": "2c8c03528bda7f50d6cb232d661ea0db0c074b38b39da8057ab8abe4868712c9",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mathscell/actions/runs/26497685693"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.0",
      "date": "2026-05-27T07:42:05.000Z",
      "commit": "b1b32708e866fc72a7a5c78a0240e482fc1df1df",
      "fileid": "45195b053d812925606e47494b931d86d35124dc802ed452372160cd09bf835f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathscell/actions/runs/26497685693"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.0",
      "date": "2026-05-27T07:41:59.000Z",
      "commit": "b1b32708e866fc72a7a5c78a0240e482fc1df1df",
      "fileid": "95e3f887e08e7679ad22b28a1826c9a8903405cd629bef0f240caa4c1f0aa93c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathscell/actions/runs/26497685693"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.2.0",
      "date": "2026-05-27T07:41:58.000Z",
      "commit": "b1b32708e866fc72a7a5c78a0240e482fc1df1df",
      "fileid": "a5dba170c2fa229abd7456725b7f11760b5d73bfa2a0a77f50f76c056813b750",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathscell/actions/runs/26497685693"
    }
  ]
}