Giter Site home page Giter Site logo

placoto's People

Contributors

mad-de avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

flekr

placoto's Issues

create_placement groups left out

Notice: Undefined index: 0::group in /mnt/web3/d3/41/53150641/htdocs/placoto/site/modules/admin_create_placement.php on line 45 Notice: Undefined index: 2::group in /mnt/web3/d3/41/53150641/htdocs/placoto/site/modules/admin_create_placement.php on line 45

karma_deductions for multiple deployments

Report (Start: 10.07.2016-00:41:44)

Participating students:

Student ID: 1; Karma (after initial calculations): -4
Wishes for Test: JOKER: 1; PRIORITY 1: Test;
Wishes for TEST2: PRIORITY 1: TEST2;

Student ID: 21; Karma (after initial calculations): -7
Wishes for Test: JOKER: 1; PRIORITY 1: Test;
Wishes for TEST2: PRIORITY 1: TEST2;

Student ID: 27; Karma (after initial calculations): -4; Jokers: 1;
Wishes for Test: PRIORITY 1: Test;
Wishes for TEST2: PRIORITY 1: TEST2;

Student ID: 34; Karma (after initial calculations): -8
Wishes for Test: PRIORITY 1: Test;
Wishes for TEST2: PRIORITY 1: TEST2;

Student ID: 40; Karma (after initial calculations): -9; Jokers: 1;
Wishes for Test: PRIORITY 1: Test;
Wishes for TEST2: PRIORITY 1: TEST2;

Student ID: 47; Karma (after initial calculations): -4; Jokers: 1;
Wishes for Test: PRIORITY 1: Test;
Wishes for TEST2: PRIORITY 1: TEST2;

Student ID: 50; Karma (after initial calculations): 0; Jokers: 1;
Wishes for Test: PRIORITY 2: Test;
Wishes for TEST2: PRIORITY 2: TEST2;

Available placements:

Test
Name: Test; Location: Test; Maximum places: 2 Time: 01.12.2012-02.12.2012
Name: Test; Location: Test; Maximum places: 2 Time: 03.12.2012-04.12.2012
Name: Test; Location: Test; Maximum places: 3 Time: 05.12.2012-06.12.2012

TEST2
Name: TEST2; Location: Test; Maximum places: 2 Time: 01.12.2012-02.12.2012
Name: TEST2; Location: Test; Maximum places: 2 Time: 03.12.2012-04.12.2012
Name: TEST2; Location: Test; Maximum places: 3 Time: 05.12.2012-06.12.2012

Calculating placement

Iteration 7 (Chunk 1; Iteration 7)

JOKER
TEST2. Time: 01.12.2012-02.12.2012; Available places: 2; with 0 Students eligable:
TEST2. Time: 03.12.2012-04.12.2012; Available places: 2; with 0 Students eligable:
TEST2. Time: 05.12.2012-06.12.2012; Available places: 3; with 0 Students eligable:
Test. Time: 05.12.2012-06.12.2012; Available places: 3; with 0 Students eligable:
Test. Time: 03.12.2012-04.12.2012; Available places: 2; with 0 Students eligable:
Test. Time: 01.12.2012-02.12.2012; Available places: 2; with 0 Students eligable:

PRIORITY 1
TEST2. Time: 01.12.2012-02.12.2012; Available places: 2; with 6 Students eligable: ID:1;ID:21;ID:27;ID:34;ID:40;ID:47;
Not enough places. Begin calculating luck:
ID:27 rolled the dice with a karma of -4. He got lucky with 12144 points. Congratulations; His karma will therefore be reduced by 1; ;
ID:21 rolled the dice with a karma of -7. He got lucky with 5355 points. Congratulations; His karma will therefore be reduced by 1; ;
ID:34 rolled the dice with a karma of -8. He was unsuccesful with 5270 points. Sorry, mate. But he will get a Karma bonus of 1;
ID:1 rolled the dice with a karma of -4. He was unsuccesful with 4782 points. Sorry, mate. But he will get a Karma bonus of 1;
ID:47 rolled the dice with a karma of -4. He was unsuccesful with 3972 points. Sorry, mate. But he will get a Karma bonus of 1;
ID:40 rolled the dice with a karma of -9. He was unsuccesful with 1259 points. Sorry, mate. But he will get a Karma bonus of 1;
The overall happiness has increased by 120 in this round and is now 120
TEST2. Time: 03.12.2012-04.12.2012; Available places: 2; with 4 Students eligable: ID:1;ID:34;ID:40;ID:47;
Not enough places. Begin calculating luck:
ID:47 rolled the dice with a karma of -3. He got lucky with 7068 points. Congratulations; He already got a karma bonus in this round. His karma will therefore be reduced by 2; ;
ID:1 rolled the dice with a karma of -3. He got lucky with 6354 points. Congratulations; He already got a karma bonus in this round. His karma will therefore be reduced by 2; ;
ID:34 rolled the dice with a karma of -7. He was unsuccesful with 2100 points. Sorry, mate.
ID:40 rolled the dice with a karma of -8. He was unsuccesful with 194 points. Sorry, mate.
The overall happiness has increased by 120 in this round and is now 240
TEST2. Time: 05.12.2012-06.12.2012; Available places: 3; with 2 Students eligable: ID:34;ID:40;
Enough places for all eligable students. Students allocated: ID:34; He already got a karma bonus in this round. His karma will therefore be reduced by 2; ID:40; He already got a karma bonus in this round. His karma will therefore be reduced by 2;
The overall happiness has increased by 120 in this round and is now 360
Test. Time: 05.12.2012-06.12.2012; Available places: 3; with 4 Students eligable: ID:1;ID:21;ID:27;ID:47;
Not enough places. Begin calculating luck:
ID:47 rolled the dice with a karma of -5. He got lucky with 5644 points. Congratulations; He already got a karma bonus in this round. His karma will therefore be reduced by 2; ;
ID:21 rolled the dice with a karma of -8. He got lucky with 1685 points. Congratulations; His karma will therefore be reduced by 1; ;
ID:27 rolled the dice with a karma of -5. He got lucky with 1484 points. Congratulations; His karma will therefore be reduced by 1; ;
ID:1 rolled the dice with a karma of -5. He was unsuccesful with 1288 points. Sorry, mate.
The overall happiness has increased by 180 in this round and is now 540
Test. Time: 03.12.2012-04.12.2012; Available places: 2; with 2 Students eligable: ID:34;ID:40;
Enough places for all eligable students. Students allocated: ID:34; He already got a karma bonus in this round. His karma will therefore be reduced by 2; ID:40; He already got a karma bonus in this round. His karma will therefore be reduced by 2;
The overall happiness has increased by 120 in this round and is now 660
Test. Time: 01.12.2012-02.12.2012; Available places: 2; with 1 Students eligable: ID:1;
Enough places for all eligable students. Students allocated: ID:1; He already got a karma bonus in this round. His karma will therefore be reduced by 2;
The overall happiness has increased by 60 in this round and is now 720

PRIORITY 2
TEST2. Time: 01.12.2012-02.12.2012; Available places: 0; with 1 Students eligable: ID:50;
But there are no placements open. Sorry guys!
TEST2. Time: 03.12.2012-04.12.2012; Available places: 0; with 1 Students eligable: ID:50;
But there are no placements open. Sorry guys!
TEST2. Time: 05.12.2012-06.12.2012; Available places: 1; with 1 Students eligable: ID:50;
Enough places for all eligable students. Students allocated: ID:50
The overall happiness has increased by 50 in this round and is now 770
Test. Time: 05.12.2012-06.12.2012; Available places: 0; with 0 Students eligable:
Test. Time: 03.12.2012-04.12.2012; Available places: 0; with 1 Students eligable: ID:50;
But there are no placements open. Sorry guys!
Test. Time: 01.12.2012-02.12.2012; Available places: 1; with 1 Students eligable: ID:50;
Enough places for all eligable students. Students allocated: ID:50
The overall happiness has increased by 50 in this round and is now 820

PRIORITY 3
TEST2. Time: 01.12.2012-02.12.2012; Available places: 0; with 0 Students eligable:
TEST2. Time: 03.12.2012-04.12.2012; Available places: 0; with 0 Students eligable:
TEST2. Time: 05.12.2012-06.12.2012; Available places: 0; with 0 Students eligable:
Test. Time: 05.12.2012-06.12.2012; Available places: 0; with 0 Students eligable:
Test. Time: 03.12.2012-04.12.2012; Available places: 0; with 0 Students eligable:
Test. Time: 01.12.2012-02.12.2012; Available places: 0; with 0 Students eligable:

LOCATION
Test. Time: 01.12.2012-02.12.2012; Available places: 0; with 0 Students eligable:
TEST2. Time: 01.12.2012-02.12.2012; Available places: 0; with 0 Students eligable:
TEST2. Time: 03.12.2012-04.12.2012; Available places: 0; with 0 Students eligable:
Test. Time: 03.12.2012-04.12.2012; Available places: 0; with 0 Students eligable:
TEST2. Time: 05.12.2012-06.12.2012; Available places: 0; with 0 Students eligable:
Test. Time: 05.12.2012-06.12.2012; Available places: 0; with 0 Students eligable:

FILL PLACES_MIN
Test. Time: 01.12.2012-02.12.2012; Available places: 0; with 0 Students eligable:
TEST2. Time: 01.12.2012-02.12.2012; Available places: 0; with 0 Students eligable:
TEST2. Time: 03.12.2012-04.12.2012; Available places: 0; with 0 Students eligable:
Test. Time: 03.12.2012-04.12.2012; Available places: 0; with 0 Students eligable:
TEST2. Time: 05.12.2012-06.12.2012; Available places: 0; with 0 Students eligable:
Test. Time: 05.12.2012-06.12.2012; Available places: 0; with 0 Students eligable:

REMAINING
Test. Time: 01.12.2012-02.12.2012; Available places: 0; with 0 Students eligable:
TEST2. Time: 01.12.2012-02.12.2012; Available places: 0; with 0 Students eligable:
TEST2. Time: 03.12.2012-04.12.2012; Available places: 0; with 0 Students eligable:
Test. Time: 03.12.2012-04.12.2012; Available places: 0; with 0 Students eligable:
TEST2. Time: 05.12.2012-06.12.2012; Available places: 0; with 0 Students eligable:
Test. Time: 05.12.2012-06.12.2012; Available places: 0; with 0 Students eligable:

RESULTS:
Test (05.12.2012-06.12.2012) Students: 1; 50;
TEST2 (05.12.2012-06.12.2012) Students: 27; 21;
TEST2 (05.12.2012-06.12.2012) Students: 47; 1;
Test (05.12.2012-06.12.2012) Students: 34; 40;
TEST2 (05.12.2012-06.12.2012) Students: 34; 40; 50;
Test (05.12.2012-06.12.2012) Students: 47; 21; 27;
The overall happiness is: 820
Chunk Results:

Calculating the best table

Step 1: I'll try to come up with a table, where all students are allocated.
There is at least one calculation where all students are allocated. Removing all tables with students un-allocated: 4; 8;

Step 2: I'll try to come up with a table, where all minimum placements are allocated.
There is at least one calculation where all minimum places are allocated. Removing all tables with minimum placements unset:

Step 3: I'll select the table with the highest happiness factor.
Our winner is: 7 with a happiness factor of 820
Noticeable others:
Number 2 : 9 with a happiness factor of 820
Number 3 : 10 with a happiness factor of 820
Number 4 : 6 with a happiness factor of 820
Number 5 : 5 with a happiness factor of 820
Number 6 : 2 with a happiness factor of 820
Number 7 : 3 with a happiness factor of 820
Number 8 : 1 with a happiness factor of 820

Step 4: Find chunk with highest happiness iteration:
Chunk 1 with 10 iterations. Happiness maximum: 820

Step 5: I will upload the calculated placements file for your convenience: Download xls

Step 6: Replacing the old students table with the new one & Sending emails to students.

RESULTS:
Test (01.12.2012-02.12.2012) Students: Martin; martin6;
TEST2 (01.12.2012-02.12.2012) Students: martin1; martin2;
TEST2 (03.12.2012-04.12.2012) Students: Martin; martin5;
Test (03.12.2012-04.12.2012) Students: martin4; martin3;
TEST2 (05.12.2012-06.12.2012) Students: martin3; martin6; martin4;
Test (05.12.2012-06.12.2012) Students: martin5; martin1; martin2;

A total of 10 iterations have been calculated.
Ok, thats all. Im done for today. Calculation took 0.033357858657837 Seconds

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.