Activities: Fair Allocation

mod_ratingallocate
Maintained by WWU logo smallLearnweb – University of Münster, Picture of Tobias ReischmannTobias Reischmann, Picture of Ulm UniversityUlm University
This Module lets you add an activity to courses, in which users can rate choices. You may then distribute the users fairly to the choices by maximising overall 'hapiness' in terms of ratings. This may be an alternative to the choice activity or first-come-first-served.

Fair Allocation v3.1-r1

Release notes

moodle-mod_ratingallocate

[Build Status] (https://travis-ci.org/learnweb/moodle-mod_ratingallocate) Module which lets you add an activity to courses, in which users can rate choices. You may then distribute the users fairly to the choices by maximising overall 'hapiness' in terms of ratings. This may be an alternative to the choice activity or other first-come-first-served plugins.

This plugin is based on previous work by Stefan Koegel and Alexander Bias, University of Ulm.

Installation

This is an activity plugin and should go into mod/ratingallocate. Obtain this plugin from https://moodle.org/plugins/view/mod_ratingallocate.

Usage

Add an activity instance. Set mandatory parameters. These are timespan, in which users can give ratings, and the strategy, which form will be presented to the users to rate. Next you can add choices, which the users will have to rate later on. After the rating period has finished, you can allocate the users automatically or manually. Upon publishing the results, users will be able to see which choice they have been allocated to. For more information please visit the moodle wiki.

Moodle version

The plugin is continously tested with all moodle versions since 2.7.x. Therefore, Travis uses the most current release to build a test instance and run the behat and unit tests on them. In addition to all stable branches the version is also tested against the master branch to support early adopters. Due to conflicts with the new behat 3, versions below 3.1.x can no longer be tested against the behat tests!

Algorithm

This module uses a modified Edmonds-karp algorithm to solve the minimum-cost flow problem. Augmenting paths are found using Bellman-Ford, but the user ratings are multiplied with -1 first.

Worst-Case complexity is O(m^2n^2) with m,n being number of edges (#users+#choices+#ratings_users_gave) and nodes (2+#users+#choices) in the graph. Distributing 500 users to 21 choices takes around 11sec.

Moodle 2.7, 2.8, 2.9, 3.0, 3.1

Version information

Version build number
2016081600
Version release name
v3.1-r1
Can be updated from
v2.7-r2 (2014092900), v2.7-r3 (2015021001), v2.8-r1 (2015031801), v2.8-r2 (2015041301), v2.8-r3 (2015041301), v2.9-r1 (2015071301), v2.9-r2 (2015071401), v2.9-r3 (2016012101), v3.0-r1 (2016012701)
Can be updated to
v3.2-r1-not_published, v3.2-r1 (2017022700), v3.3-r1 (2017050800), v3.4-r1 (2017102700), v3.5-r1 (2018051300), v3.5-r2 (2018071000), v3.6-r1 (2018112900), v3.7-r1 (2019052900), v3.8-r1 (2019112100)
Maturity
Stable version
MD5 Sum
75118cfcbbdb02b87a2141510d65caad
Supported software
PHP 5.5, Moodle 2.7, PHP 5.6, Moodle 2.8, Moodle 2.9, Moodle 3.0, PHP 7.0, Moodle 3.1

Version control information

Version control system (VCS)
GIT
VCS repository URL
VCS tag
v3.1-r1

Default installation instructions for plugins of the type Activities

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "assignment") in the "mod" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation