summaryrefslogtreecommitdiff
path: root/tests/general_tests/intfminbnd/intfminbnd_logical3.sce
blob: a34582aba281b69ae1eecc4cbdb6b428a214740f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Objective function is not defined at the minimum

function y = fun(x)
	y = -1/x;
endfunction
x1 = [0];
x2 = [1.5];
intcon=[1]

[xopt,fopt,exitflag,output,lambda] = intfminbnd (fun, intcon, x1, x2);


// Optimal Solution Found.