dizpers

Test case for Nelder-Mead

Nov 28th, 2011
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. import org.apache.commons.jexl2.MapContext;
  2.  
  3. public class Test {
  4.  
  5.     /**
  6.      * @param args
  7.      */
  8.     public static void main(String[] args) {
  9.         NelderMead nm = new NelderMead("x1^3");
  10.         MapContext mc = new MapContext();
  11.         mc.set("x1", 3);
  12.         System.out.println(nm.funcEval(mc));
  13.  
  14.  
  15.     }
  16.  
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment