Examples of Problem


Examples of aima.core.search.framework.Problem

        MapFunctionFactory.getResultFunction(), new DefaultGoalTest(
            goalState), new MapStepCostFunction(map));

    this.map = map;

    reverseProblem = new Problem(goalState,
        MapFunctionFactory.getActionsFunction(map),
        MapFunctionFactory.getResultFunction(), new DefaultGoalTest(
            initialState), new MapStepCostFunction(map));
  }
View Full Code Here

Examples of au.edu.qut.yawl.exceptions.Problem

                    if (allocatedResources.contains(username)) {
                        filteredItems.add(workItemRecord);
                    }
                    } catch (YQueryException e) {
                      e.printStackTrace();
                      Problem warning = new Problem();
                      warning.setTimeStamp(new Date());
                      warning.setSource(workItemRecord.getID());
                      warning.setMessageType(Problem.EMPTY_RESOURCE_SET_MESSAGETYPE);
                      _dbConnector.saveWarning(warning);
                    }
                } catch (SQLException e) {
                    e.printStackTrace();
                } catch (HibernateException e) {
View Full Code Here

Examples of cn.edu.pku.dr.requirement.elicitation.data.Problem

                        + ")\"  style=\"padding:5px 10px 5px 10px!important;padding:4px 10px 4px 10px;height:1px;border:1px solid#7AA9DF;background-color:#EAF3FC;font-size:12px \">按好评升序</a>");
        buffer
                .append("<div id=\"problemreason_order22\" style=\"display:none\">false</div>");
        buffer.append("<div id=\"viewAllProblemreason\">");
        String good_num = "false";
        Problem problem = new Problem();
        problem.setProblemId(problemreason.getProblemId());
        problem = (Problem) cdp.get(problem);
        ArrayList problemreasons2 = problem.getProblemreasons();
        if (good_num.equals("true")) {
            Collections.sort(problemreasons2);
        }
        String content = "";

        content = getProblemreasonNotByGroup(userId, problemreasons2);
        buffer.append(content);
        // buffer.append("</div>");
        buffer
                .append("<div id=\"Lg\" ></div><div id=\"createProblemReasonDiscuss\"><a  id=\"order1\" href=\"javascript:Problem.createProblemReasonDiscuss("
                        + problemreason.getProblemId()
                        + ")\"  style=\"padding:5px 10px 5px 10px !important;padding:4px 10px 4px 10px;height:1px;border:1px solid #7AA9DF;background-color:#EAF3FC;font-size:12px\">发表评论</a></div>");

        buffer
                .append("<div id=\"Lg\" ></div><div class=\"pl10\"><A class=\"bluelink \" onclick=; href=\"javascript:showAllProblemreason("
                        + problem.getProblemId()
                        + ");\">查看所有关于问题原因的评论</A> </div>");

        return buffer;

    }
View Full Code Here

Examples of cn.edu.zju.acm.onlinejudge.bean.Problem

                ps.setLong(1, id);
                ResultSet rs = ps.executeQuery();
                if (!rs.next()) {
                    return null;
                }
                Problem problem = this.populateProblem(rs);
                long limitId = rs.getLong(DatabaseConstants.PROBLEM_LIMITS_ID);
                ps = conn.prepareStatement(ProblemPersistenceImpl.GET_LIMIT);
                ps.setLong(1, limitId);
                rs = ps.executeQuery();
                if (rs.next()) {
                    Limit limit = this.populateLimit(rs);
                    problem.setLimit(limit);
                }
                return problem;
            } finally {
                Database.dispose(ps);
            }
View Full Code Here

Examples of com.eclipsesource.jshint.Problem

    verify( adapter ).createWarning( 1, -1, -1, "test" );
  }

  private Problem mockError( int line, int character, String message ) {
    Problem problem = mockWarning( line, character, message );
    when( Boolean.valueOf( problem.isError() ) ).thenReturn( Boolean.TRUE );
    return problem;
  }
View Full Code Here

Examples of com.niacin.problem.Problem

  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 de.bwaldvogel.liblinear.Problem

      throw new LiblinearException("The parent guide model cannot be found. ");
    }
//    cardinalities = getCardinalities(featureVector);
    if (pathExternalLiblinearTrain == null) {
      try {
        Problem problem = null;
        if (featurePruning) {
          problem = readLibLinearProblemWithFeaturePruning(getInstanceInputStreamReader(".ins"));
        } else {
//          problem = readLibLinearProblem(getInstanceInputStreamReader(".ins"), cardinalities);
        }
View Full Code Here

Examples of de.bwaldvogel.liblinear.Problem

    return getConfiguration().getConfigurationDir().getConfigFileEntry(owner.getModelName()+getLearningMethodName()+suffix);
  }
 
 
  public Problem readLibLinearProblemWithFeaturePruning(InputStreamReader isr) throws MaltChainedException {
    Problem problem = new Problem();
   
    try {
      final BufferedReader fp = new BufferedReader(isr);
     
      problem.bias = -1;
View Full Code Here

Examples of de.bwaldvogel.liblinear.Problem

   * @param isr  the instance stream reader for the instance file
   * @param cardinalities  a array containing the number of distinct values for a particular column.
   * @throws LiblinearException
   */
  public Problem readLibLinearProblem(InputStreamReader isr, int[] cardinalities) throws MaltChainedException {
    Problem problem = new Problem();

    try {
      final BufferedReader fp = new BufferedReader(isr);
      int max_index = 0;
      if (xlist == null) {
View Full Code Here

Examples of de.bwaldvogel.liblinear.Problem

    int[] labels = null;
    int nr_class = 0;
    int nr_feature = 0;
    Parameter parameter = getLiblinearParameters();
    try
      Problem problem = readProblem(getInstanceInputStreamReader(".ins"));
      boolean res = checkProblem(problem);
      if (res == false) {
        throw new LibException("Abort (The number of training instances * the number of classes) > "+Integer.MAX_VALUE+" and this is not supported by LibLinear. ");
      }
      if (configLogger.isInfoEnabled()) {
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.