Examples of NMSimplex


Examples of com.mockturtlesolutions.snifflib.invprobs.NMSimplex

    DblMatrix lrbnd = new DblMatrix(2.0);
    DblMatrix upbnd = new DblMatrix(12.0);
   
                Param.Dblput("pH",initval);

                NMSimplex Simplex = new NMSimplex(new CbObjective(this),Param);

                NMSimplexConfiguration Opts = Simplex.getOptions();
    DblParamSet bnd = (DblParamSet)Opts.getConfigValue("LowerBnd");
                bnd.Dblput("pH",lrbnd);
    Opts.setConfigValue("LowerBnd",bnd);
   
    bnd = (DblParamSet)Opts.getConfigValue("UpperBnd");
                bnd.Dblput("pH",upbnd);
    Opts.setConfigValue("UpperBnd",bnd);
               
    try
    {
                  Simplex.solve();
    }
    catch (Exception err)
    {
      throw new RuntimeException("Failed minimization in initpH",err);
    }
   
   
                DblParamSet best = Simplex.getBestEstimate();
   
    return(best.Dblget("pH"));
  }
View Full Code Here

Examples of com.mockturtlesolutions.snifflib.invprobs.NMSimplex

    DblMatrix initval = iv;
    DblMatrix lrbnd = new DblMatrix(2.0);
    DblMatrix upbnd = new DblMatrix(12.0);
                Param.Dblput("pH",initval);

                NMSimplex Simplex = new NMSimplex(new CbObjective(this),Param);
    
   
    NMSimplexConfiguration Opts = Simplex.getOptions();
    DblParamSet bnd = (DblParamSet)Opts.getConfigValue("LowerBnd");
                bnd.Dblput("pH",lrbnd);
    Opts.setConfigValue("LowerBnd",bnd);
   
    bnd = (DblParamSet)Opts.getConfigValue("UpperBnd");
                bnd.Dblput("pH",upbnd);
    Opts.setConfigValue("UpperBnd",bnd);
               

    try
    {
                  Simplex.solve();
    }
    catch (Exception err)
    {
      throw new RuntimeException("Failed minimization in initpH",err);
    }
                DblParamSet best = Simplex.getBestEstimate();
   
    return(best.Dblget("pH"));
  }
View Full Code Here

Examples of com.mockturtlesolutions.snifflib.invprobs.NMSimplex

    DblMatrix initval = iv;
    DblMatrix lrbnd = lr;
    DblMatrix upbnd = up;
                Param.Dblput("pH",initval);

                NMSimplex Simplex = new NMSimplex(new CbObjective(this),Param);


    NMSimplexConfiguration Opts = Simplex.getOptions();
    DblParamSet bnd = (DblParamSet)Opts.getConfigValue("LowerBnd");
                bnd.Dblput("pH",lrbnd);
    Opts.setConfigValue("LowerBnd",bnd);
   
    bnd = (DblParamSet)Opts.getConfigValue("UpperBnd");
                bnd.Dblput("pH",upbnd);
    Opts.setConfigValue("UpperBnd",bnd);
               
              
    try
    {
                  Simplex.solve();
    }
    catch (Exception err)
    {
      throw new RuntimeException("Failed minimization in initpH",err);
    }
   
                DblParamSet best = Simplex.getBestEstimate();
   
    return(best.Dblget("pH"));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.