+1
Completed

can the mp tool be used to solve positive solutions of a linear system (lsqnonneg in MATLAB)?

fxmagrans 4 weeks ago updated 4 weeks ago 4

can the mp tool be used to solve positive solutions of a linear system (lsqnonneg in MATLAB)?

+1
Under review

We have just included lsqnonneg into the newest toolbox version. Please re-download it from our webpage. Examples:

>> mp.Digits(34);
>> C = mp('[0.0372 0.2869; 0.6861 0.7071; 0.6233 0.6245; 0.6344 0.6170]');
>> d = mp('[0.8587; 0.1781; 0.0747; 0.8405]');
>> x = lsqnonneg(C,d)

x =

0
0.6929343971302933831938176511663673
>> mp.Digits(100);
>> C = mp('[0.0372 0.2869; 0.6861 0.7071; 0.6233 0.6245; 0.6344 0.6170]');
>> d = mp('[0.8587; 0.1781; 0.0747; 0.8405]');
>> x = lsqnonneg(C,d)

x =

0
0.6929343971302933831938176511663670971062510...868165705163788676921766095

Options and multiple outputs are also supported.

Let me know how it works for your problem.

The new version works with the lsqnonneg but doesn't acccept my licence. What i have to do? please