Class AgentsTasksRandomValues
java.lang.Object
topics.greedy.agents.AgentsTasksRandomValues
Random Asset Generator for Agent Task Assignment
Generates arbitrary square matrices representing cost metrics associated with mapping specific tasks to individual agents. Values are bounded between 1 and 999.
- Author:
- vicegd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidfillMatrixRandomly(int[][] matrix) Fills a square matrix with random costs between 1 and 999.static void
-
Constructor Details
-
AgentsTasksRandomValues
public AgentsTasksRandomValues()
-
-
Method Details
-
main
-
fillMatrixRandomly
public static void fillMatrixRandomly(int[][] matrix) Fills a square matrix with random costs between 1 and 999. Uses ThreadLocalRandom for optimized memory efficiency boundaries.- Parameters:
matrix- The matrix to populate.
-