Examples of Optimize


Examples of com.niacin.annotation.Optimize

    return Niacin.instance;
  }

  private Niacin(Class<?> klassInput, Class<?> klassFitness)
  {
    Optimize opt = getOptimization(klassFitness);
    Vector<Variable<?>> variables = getVariables(klassInput);
    Problem problem = new Problem(opt.name(), variables, opt.direction(), opt.trials());
    Metaheuristic metaheuristic = MetaheuristicFactory.create(opt.method(), problem);

    eventBus.register(NiacinEventHandler.initialise(klassInput, klassFitness, problem, metaheuristic));
  }
View Full Code Here

Examples of org.exist.xquery.pragmas.Optimize

                // Create the pragma
                final ExtensionExpression extension = new ExtensionExpression(context);
                if (optimizePragma != null) {
                    extension.addPragma(optimizePragma);
                }
                extension.addPragma(new Optimize(context, Optimize.OPTIMIZE_PRAGMA, null, false));
                extension.setExpression(locationStep);
               
                // Replace the old expression with the pragma
                path.replace(locationStep, extension);
               
View Full Code Here

Examples of org.exist.xquery.pragmas.Optimize

            hasOptimized = true;
            final RewritableExpression path = (RewritableExpression) parent;
            try {
                // Create the pragma
                final ExtensionExpression extension = new ExtensionExpression(context);
                extension.addPragma(new Optimize(context, Optimize.OPTIMIZE_PRAGMA, null, false));
                extension.setExpression(filtered);
                // Replace the old expression with the pragma
                path.replace(filtered, extension);
            } catch (final XPathException e) {
                LOG.warn("Failed to optimize expression: " + filtered + ": " + e.getMessage(), e);
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.