From: <mc...@us...> - 2012-03-13 13:53:29
|
Revision: 9859 http://octave.svn.sourceforge.net/octave/?rev=9859&view=rev Author: mcreel Date: 2012-03-13 13:53:22 +0000 (Tue, 13 Mar 2012) Log Message: ----------- add example of parameter restriction to samin_example.m Modified Paths: -------------- trunk/octave-forge/main/optim/inst/samin_example.m Modified: trunk/octave-forge/main/optim/inst/samin_example.m =================================================================== --- trunk/octave-forge/main/optim/inst/samin_example.m 2012-03-13 10:29:54 UTC (rev 9858) +++ trunk/octave-forge/main/optim/inst/samin_example.m 2012-03-13 13:53:22 UTC (rev 9859) @@ -50,6 +50,11 @@ # SA controls ub = 10*ones(rows(theta),1); lb = -ub; +# setting ub and lb to same value restricts that parameter, and the algorithm does not search +ub(1,:) = 0; +lb(1,:) = 0; +theta(1,:) = 0; # must satisfy restriction + nt = 20; ns = 5; rt = 0.5; # careful - this is too low for many problems This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |