Examples of solve()


Examples of gannuOP.algorithms.Optimizer.solve()

      String parameters=algorithm.getAttribute("parameter");
      ArrayList<ArrayList<Report>> r=new ArrayList<ArrayList<Report>>(testbed.size());
      System.out.println("Algorithm : " +optimizer.toString());
      for(Function function:testbed)
      {
        r.add(optimizer.solve(parameters, function, maxfes, reportfes, precision));
        ArrayList<Report> x=r.get(r.size()-1);
        Report d=x.get(x.size()-1);
        System.out.println("Error: " +d.getBestIndividual()[function.getD()]);
        System.out.println("Evaluations: " +d.getFes());
      }
View Full Code Here

Examples of gannuWSD.algorithms.FirstSense.solve()

          //filter.addParameters("corpus:sgfSamples/semcor3.0/");
          //skipFilters.add(filter);
          wsd.setSkipFilters(skipFilters);
          ArrayList<WindowFilter> filters=new ArrayList<WindowFilter>(1);                 
          wsd.setWindowFilters(filters);         
          ArrayList<Decision> ds=wsd.solve(test, null, null, data);
          System.out.println("Modifying file...");
          Input.modifyAndSaveSGF(f.getCanonicalPath()+".sgf",ds);
        }
        System.out.println("Saving...");
      }
View Full Code Here

Examples of gannuWSD.algorithms.WSDAlgorithm.solve()

          //filter.addParameters("corpus:sgfSamples/semcor3.0/");
          //skipFilters.add(filter);
          wsd.setSkipFilters(skipFilters);
          ArrayList<WindowFilter> filters=new ArrayList<WindowFilter>(1);                 
          wsd.setWindowFilters(filters);         
          ArrayList<Decision> ds=wsd.solve(test, null, null, data);
          System.out.println("Modifying file...");
          Input.modifyAndSaveSGF(f.getCanonicalPath()+".sgf",ds);
        }
        System.out.println("Saving...");
      }
View Full Code Here

Examples of hu.u_szeged.nbo.client.model.ResourceAllocation.solve()

              ClientLogManager.addUserLog("You've missed to specify a positive m for problem " + ra.getName() + "!", true);
             
              return;
            }
           
            ra.solve();
            ra.setState(Model.STARTED);
            ra.setStartTime(System.currentTimeMillis());
           
            new SolutionMonitorThread(mainWindow, (Model)domain).start();
           
View Full Code Here

Examples of hu.u_szeged.nbo.geometria.main.algorithm.GeomAlgorithm.solve()

    String dirName = this.task;
   
    try {
      resources = new GeomResources(dirName);
      GeomAlgorithm algorithm = new GeomAlgorithm();
      GeomResult result = algorithm.solve(resources);
      resultString+=result.writeOut(dirName + "/"+ problemName  +".out");
    } catch (GeomFileNotFoundException e) {
      this.pluginLogger.warning(e.toString());
      NBOServer.log(e.toString(), 2);
    } catch (GeomWrongFileTypeException e) {
View Full Code Here

Examples of hu.u_szeged.nbo.res_alloc.algorithm.GreedyAlgorithm.solve()

      }
      if (a == null) {
        log += "no such algorithm\n";
        return;
      }
      a.solve();
      log += a.getLog();
      log = propertiesData + "\n\n" + log;
      //model.computeC();
      output = model.output();
      model.outputTables(inputDir);
View Full Code Here

Examples of hu.u_szeged.nbo.res_alloc.main.Solver.solve()

  public void run() {
    NBOServer.log("ResourceAllocationSolver STARTED for " +
        user.getUserName() + "'s task: " + task + ".", 1);
   
    Solver solver = new Solver();
    solver.solve(this.task);
   
    Result result = new Result(this.uniqueHash, this.problemName);
    result.add(this.problemName, solver.getOutput());
   
    try {
View Full Code Here

Examples of hu.u_szeged.nbo.server.jni.JLPClass.solve()

    lp.setLogLevel(4);
    lp.setInputSource(1);
    lp.setInputMPSFileName(task);

    lp.solve();

      log += lp.getMessages();
     
      for (int i = 0; i < lp.getNumberColumns(); i++) {
        result += i + ". variable: " + lp.getSolution(i) + "\n";
View Full Code Here

Examples of hu.u_szeged.nbo.server.jni.JMILPClass.solve()

   
    JMILPClass milp = new JMILPClass();
    milp.initCppSide();
    milp.setLogLevel(4);
    milp.setInputMPSFileName(task);
    milp.solve();
    log += milp.getMessages();
   
      for (int i=0; i < milp.getNumberColumns(); i++) {
      result += i + ". variable: " + milp.getSolution( i ) + "\n";
    }
View Full Code Here

Examples of jinngine.physics.solver.ConjugateGradients.solve()

    List<Body> bodies = new ArrayList<Body>();
    List<NCPConstraint> constraints = new ArrayList<NCPConstraint>();
    bodies.add(b1); bodies.add(b2); constraints.add(c1);

    //run the solver
    s.solve(constraints, bodies, 0.0);
   
    System.out.println("cg test="+c1.lambda);
   
    //expect solution 1/2
    assertTrue( Math.abs(-0.5 - c1.lambda) < epsilon )
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.