Skip to content

use pcls to solve least square fitting with constraints

2 messages · Baoqiang Cao, Ben Bolker

#
Hi,

I have a least square fitting problem with linear inequality
constraints. pcls seems capable of solving it so I tried it,
unfortunately, it is stuck with the following error:
Error in t(qr.qty(qra, t(M$X))[(j + 1):k, ]) :
  error in evaluating the argument 'x' in selecting a method for function 't'

After some searches, I still couldn't find any solution, any help
and/or advice will be highly appreciated!

Baoqiang
#
Baoqiang Cao <bqcaomail <at> gmail.com> writes:
This is not a reproducible example, but ...

  You appear to be missing the S, sp, and off elements of the M list?
See the examples in ?pcls ...