File size: 5,503 Bytes
e00c2a1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
{
  "environment": "Energy & Memory RAM Optimization",
  "spec_version": "1.0",
  "type": "rl-environment",
  "real_world_application": "System resource optimization for data centers, cloud infrastructure, edge computing, and IoT devices",
  "total_graders": 5,
  "minimum_required_graders": 3,
  "validation_status": "PASS",
  "scoring_scale": "0.0 (worst performance) to 1.0 (best performance)",
  "graders": [
    {
      "id": "task_1_basic_ram_reduction_grader",
      "name": "basic_ram_reduction",
      "display_name": "Basic RAM Reduction",
      "difficulty": 1,
      "category": "easy",
      "description": "Reduce RAM usage below 70%",
      "targets": {
        "ram_percentage": 70.0,
        "energy_kwh": 7.5,
        "max_steps": 10
      },
      "scoring_methodology": "RAM Score (40%) + Energy Score (40%) + Step Efficiency (20%)",
      "real_world_application": "Memory optimization for resource-constrained devices, IoT, and edge computing",
      "score_examples": {
        "worst_case": {
          "ram": 100.0,
          "energy": 10.0,
          "steps": 50,
          "score": 0.0
        },
        "target_case": {
          "ram": 70.0,
          "energy": 7.5,
          "steps": 10,
          "score": 1.0
        },
        "excellent_case": {
          "ram": 60.0,
          "energy": 6.0,
          "steps": 3,
          "score": 1.0
        }
      }
    },
    {
      "id": "task_2_energy_optimization_grader",
      "name": "energy_optimization",
      "display_name": "Energy Optimization",
      "difficulty": 2,
      "category": "medium",
      "description": "Reduce energy consumption below 6 kWh while maintaining RAM below 75%",
      "targets": {
        "ram_percentage": 75.0,
        "energy_kwh": 6.0,
        "max_steps": 15
      },
      "scoring_methodology": "Energy Score (50%) + RAM Constraint Score (25%) + Step Efficiency (25%)",
      "real_world_application": "Energy efficiency optimization for data centers and cloud infrastructure",
      "score_examples": {
        "worst_case": {
          "ram": 100.0,
          "energy": 10.0,
          "steps": 50,
          "score": 0.0
        },
        "target_case": {
          "ram": 75.0,
          "energy": 6.0,
          "steps": 15,
          "score": 1.0
        },
        "excellent_case": {
          "ram": 65.0,
          "energy": 5.0,
          "steps": 10,
          "score": 1.0
        }
      }
    },
    {
      "id": "task_3_balanced_optimization_grader",
      "name": "balanced_optimization",
      "display_name": "Balanced Optimization",
      "difficulty": 3,
      "category": "hard",
      "description": "Balance RAM below 60% and energy below 5 kWh",
      "targets": {
        "ram_percentage": 60.0,
        "energy_kwh": 5.0,
        "max_steps": 20
      },
      "scoring_methodology": "Balance Score (90%: RAM Score 50% + Energy Score 50%) + Step Efficiency Bonus (10%)",
      "real_world_application": "Production system optimization with dual constraints on memory and energy",
      "score_examples": {
        "worst_case": {
          "ram": 100.0,
          "energy": 10.0,
          "steps": 50,
          "score": 0.0
        },
        "target_case": {
          "ram": 60.0,
          "energy": 5.0,
          "steps": 20,
          "score": 0.9
        },
        "excellent_case": {
          "ram": 50.0,
          "energy": 4.0,
          "steps": 15,
          "score": 0.925
        }
      }
    },
    {
      "id": "task_4_advanced_efficiency_grader",
      "name": "advanced_efficiency",
      "display_name": "Advanced Efficiency",
      "difficulty": 4,
      "category": "hard",
      "description": "Achieve RAM below 50% and energy below 4 kWh",
      "targets": {
        "ram_percentage": 50.0,
        "energy_kwh": 4.0,
        "max_steps": 25
      },
      "scoring_methodology": "Balance Score (90%: RAM Score 50% + Energy Score 50%) + Step Efficiency Bonus (10%)",
      "real_world_application": "Highly constrained embedded systems and IoT devices",
      "score_examples": {
        "worst_case": {
          "ram": 100.0,
          "energy": 10.0,
          "steps": 50,
          "score": 0.0
        },
        "target_case": {
          "ram": 50.0,
          "energy": 4.0,
          "steps": 25,
          "score": 0.9
        }
      }
    },
    {
      "id": "task_5_expert_optimization_grader",
      "name": "expert_optimization",
      "display_name": "Expert Optimization",
      "difficulty": 5,
      "category": "expert",
      "description": "Master level: RAM below 40% and energy below 3 kWh",
      "targets": {
        "ram_percentage": 40.0,
        "energy_kwh": 3.0,
        "max_steps": 30
      },
      "scoring_methodology": "Balance Score (90%: RAM Score 60% + Energy Score 40%) + Step Efficiency Bonus (10%)",
      "real_world_application": "Mission-critical space, deep-sea probes, and highly scaled edge clusters",
      "score_examples": {
        "worst_case": {
          "ram": 100.0,
          "energy": 10.0,
          "steps": 50,
          "score": 0.0
        }
      }
    }
  ],
  "summary": {
    "graders_count": 5,
    "min_graders_required": 3,
    "graders_detected": true,
    "different_scores_returned": true,
    "real_world_application": true,
    "validation_passed": true
  }
}