# llmsr-bench / llmsr-bench-chem_react-crk18

- taskset: [llmsr-bench](https://harnessreport.com/tasks/llmsr-bench.md)
- difficulty: medium
- category: scientific-equation-discovery
- language: 
- runnable from the site: no
- agent timeout: 1800s

## Results by harness

_none yet_

## Instruction

```
# Scientific Equation Discovery: CRK18

## Problem Description

Your task is to discover a mathematical equation that describes the relationship between the given variables using the provided experimental data.

## Variables

- `dA_dt`: Rate of change of concentration in chemistry reaction kinetics (type: output)
- `t`: Time (type: input)
- `A`: Concentration at time t (type: input)

## Task

1. Analyze the training data
2. Discover the equation relating inputs to output
3. Write the equation to `/logs/agent/discovered_equation.txt`

## Data Files

**Training data (use this to discover equation):**
- `/data/train_data.csv`

**Test data (used for scoring - don't look at this!):**
- `/data/test_data.csv`

**Optional OOD test (if exists):**
- `/data/ood_test_data.csv`

> **Note:** In all CSV files, the **last column** is the output variable and all earlier columns are inputs.

## Equation Format

### Basic Syntax
```python
dA_dt = your_expression_here
```

### Available Operations

- **Arithmetic:** `+`, `-`, `*`, `/`, `**` (power)
- **Functions:** `sqrt()`, `exp()`, `log()`, `sin()`, `cos()`, `tan()`, `abs()`
- **Constants:** Use variable names from CSV headers exactly

### Free Parameters

You may introduce **scalar constants** (e.g., `c0`, `c1`, `k`, `alpha`) that are **not** CSV columns. These will be **automatically fitted** using BFGS optimization during evaluation.

## Evaluation Metrics

Your equation will be scored using:

- **R²** (coefficient of determination): **This is your reward!**
  - 1.0 = Perfect prediction
  - 0.9+ = Excellent
  - 0.8+ = Good
  - 0.6+ = Moderate
  - <0.6 = Poor

- **MSE** (mean squared error): Logged for analysis
- **NMSE** (normalized MSE): Logged for analysis

## Output Format

Write **exactly one line** to `/logs/agent/discovered_equation.txt`:
```python
dA_dt = your_expression_here
```
```
---
Harness Report runs agent harnesses from their GitHub repos on Harbor tasks and records every model call. Every page is also `.md` and `.json`; index: https://harnessreport.com/llms.txt · MCP: https://harnessreport.com/mcp
