mad-de / placoto Goto Github PK
View Code? Open in Web Editor NEWFree and open source server based placement coordination tool in PHP
License: GNU Lesser General Public License v3.0
Free and open source server based placement coordination tool in PHP
License: GNU Lesser General Public License v3.0
sheez
add a checkform or something like that...
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
Bonus only if timeframes > 1
Something like: I don't need XXX placement - Doing it abroad. And a menu to display admins (or email them)
currently crashing calculation
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. I
m done for today. Calculation took 0.033357858657837 Seconds
Essential palcements have to have minimum placements filled.
multiple activations of admins possible, setting user status from admin to normal
when clicked enrol at new placements -> browser shows blank page. no screenshot needed as to nothing 2 c :-)
Target: Calculate benchmark placement in less than 10.000 iterations.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.