Git Product home page Git Product logo

opttp's Introduction

Hi there 👋

opttp's People

Contributors

romophic avatar

Watchers

 avatar

opttp's Issues

偏重グラフに対応させる

任意頂点でDAGを組めるが往復パスにて重みが違う偏重グラフ?において、経路長の計算を*2で済ませているのでそこの対応

//533
state.l[carriernum] += model.G.g[pos][outdnum].cost * 2; // TODO: 偏重の場合対応

frand() 調整について

  unsigned long xor128() {
    static unsigned long x = 123456789, y = 362436069, z = 521288629, w = 88675123;
    unsigned long t;
    t = (x ^ (x << 11));
    x = y;
    y = z;
    z = w;
    return w = (w ^ (w >> 19)) ^ (t ^ (t >> 8));
  }
  double frand() {
    //return xor128() % ULONG_MAX / static_cast<double>(ULONG_MAX);
    return (((double) rand() / (RAND_MAX)));
  }

これを使いたくないんだけど、RAND_MAXは変な値返すし、randomgeneratorは定数倍が重くて見直すことになりそうなので難しい雰囲気がします

使用箇所

  • modify()のランダムな遷移
  • e^ での確率的受け入れ

野望

UTGSC受かったら16台借りてクラスタ組む

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.