summaryrefslogtreecommitdiff
path: root/tests/general_tests/lsqnonlin/lsqnonlin_logical1.sce
blob: ab4a7c7a3d292fab27e53b70699561cac91fdd83 (plain)
1
2
3
4
5
6
7
8
9
10
function [y,dy] = testmyfun(x)
	km = [1:10]';
	y = 2 + 2*km-exp(km*x(1))-exp(km*x(2));
endfunction

x0 = [0.2 0.2]'

options = list("GradObj","off")

[x,resnorm,residual] = lsqnonlin(testmyfun,x0,[],[],options)