Package hu.u_szeged.nbo.geometria.element

Examples of hu.u_szeged.nbo.geometria.element.GeomWork


   * @return
   */
  private int kiszamolMaxBejelentesiIdo() {
    int maxBejelentesiIdo = 0;
    for(int i=1; i<=Mvesszo.gmMeret(); i++){
      GeomWork work =(GeomWork)Mvesszo.gmIedikElem(i);
      if(work.getBejelentesiIdo() > maxBejelentesiIdo){
        maxBejelentesiIdo = work.getBejelentesiIdo();
      }
    }
    return maxBejelentesiIdo;
  }
View Full Code Here


   *
   */
  private int kiszamolMaxLegkozelebbiEroforrasTavolsaga() {
    int maxLegkozelebbiEroforrasTavolsaga = 0;
    for(int i=1; i<=Mvesszo.gmMeret(); i++){
      GeomWork work =(GeomWork)Mvesszo.gmIedikElem(i);
      int legkozelebbiEroforrasTavolsaga = legkozelebbiEroforrasTavolsaga(work);
      if(legkozelebbiEroforrasTavolsaga > maxLegkozelebbiEroforrasTavolsaga){
        maxLegkozelebbiEroforrasTavolsaga = legkozelebbiEroforrasTavolsaga;
      }
    }
View Full Code Here

    int szumma = 0;
    c = new GeomIntMatrix(Mvesszo.gmMeret());
    for(int i=1; i<=c.getMeret().getX(); i++){
      GeomTeam team = (GeomTeam)Evesszo.gmIedikElem(i);
      for(int j=1; j<=c.getMeret().getY(); j++){
        GeomWork work = (GeomWork)Mvesszo.gmIedikElem(j);
       
        if(team.isFiktiv() || work.isFiktiv()){
          c.setElement(i, j, 0);
        }else if(!parosithatokTipusSzerint(team, work)){
          c.setElement(i, j, W);
        }else{
          int ars = resources.matrixRoadCost.getElementByIndex(team.getActualPlace().getId(),work.getPlace().getId());
          int asp = resources.matrixRoadCost.getElementByIndex(work.getPlace().getId(), team.getBasicPlace().getId());
          double additivErtek = K * 100 * resources.getMaxRoadCost() * work.getRendezesiSuly();
          double vesztesegErtek = L * (GeomWork.getMaxEgysegnyiVeszteseg() - (double)work.getEgysegnyiVeszteseg() / (ars+1));
         
          int vi1 = team.getIdoablak().getX();
          int vi2 = team.getIdoablak().getY();
          int tj1 = work.getIdoablak().getX();
          int tj2 = work.getIdoablak().getY();
          int tetaj = work.getVegrehajtasiIdo();
          double ertek = W;
         
          if(max(vi1 + ars, tj1) + tetaj <= min(tj2, vi2, vi2+hp-asp)){
            if(team.getActualPlace() == work.getPlace()){
              if(tj1 <= vi1){
                ertek = 0;
              }else{
                ertek = (double)(tj1 - vi1) / (resources.getMaxRoadCost()+1);
              }
            }else if(KAP(team.getActualPlace().getId(), team.getType()) - KAP(work.getPlace().getId(), team.getType()) > epszilon && vi2 - vi1 - ars >= kappa){
              if(tj1 <= vi1 + ars){
                ertek = ars;
              }else if(vi1 + ars < tj1){
                ertek = ars * (lambda + (double)(tj1 - vi1 - ars) / (tj1 - vi1));
              }
View Full Code Here

    if(logger.isHozzarendMeretEnabled()){
      System.out.println("hozzarendelesi feladat merete: "+c.getMeret());
    }
    megoldas = hozzarend.solve(c);
    for(int j=1; j<=megoldas.getMeret().getY(); j++){
      GeomWork work = (GeomWork)Mvesszo.gmIedikElem(j);
      if(!work.isFiktiv()){
        for(int i=1; i<=megoldas.getMeret().getX(); i++){
          if(megoldas.getElement(i, j)==1){
            GeomTeam team = (GeomTeam)Evesszo.gmIedikElem(i);
            if(!team.isFiktiv() && c.getElement(i,j)<W){
              vanEnemFiktivPar = true;
View Full Code Here

    ltr.setIndexY(resources.matrixTypePair.getIndexX());
    KAPij.setIndexX(resources.matrixRoadCost.getIndexX());
    KAPij.setIndexY(resources.matrixTypePair.getIndexX());
   
    for(int i=1; i<=M.gmMeret(); i++){
      GeomWork work = (GeomWork)M.gmIedikElem(i);
      if(!work.isElkezdve() &&
          (work.getIdoablak().getX() + work.getVegrehajtasiIdo() <= gamma*(lepesszam+1)) &&
          (work.getIdoablak().getY() <= gamma*(lepesszam+2))){
        ((GeomHalmaz)Kt.get(work.getPlace())).gmBeszur(work);
        ktr.setElementAddByIndex(work.getPlace().getId(), work.getType(), work.getVegrehajtasiIdo());
      }
    }
    for(int i=1; i<=Evesszo.gmMeret(); i++){
      GeomTeam team = (GeomTeam)Evesszo.gmIedikElem(i);
      if(team.getIdoablak().getX() <= gamma*(lepesszam+1)){
 
View Full Code Here

TOP

Related Classes of hu.u_szeged.nbo.geometria.element.GeomWork

Copyright © 2018 www.massapicom. 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.