# Mine Production Scheduler AI Agent Connect

> Optimizes mine production schedules, cutoff grades, and NPV using linear programming.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_QXePLg1vG8oZm0c5dUq2TQf8z9rn8HCYzIrvWhz2/ai-agent-connect
- **Tags:** mining, optimization, npv, production-scheduling, linear-programming

## Description

This MCP server provides specialized tools for mining engineers to optimize production schedules. It connects AI agents to core mining optimization logic, allowing for the calculation of annual production timelines, optimal cutoff grades, and total project Net Present Value (NPV). Users can use `calculate_annual_production_schedule` to generate mining timelines, `determine_period_cutoff_grades` to find optimal grade thresholds, and `calculate_project_npv` to evaluate economic feasibility. Additionally, `validate_blending_constraints` ensures that the planned ore extraction meets specific material quality requirements.

## Tools

### calculate_annual_production_schedule
Generates a high-level timeline of mining and processing activities

### calculate_project_npv
Calculates the total economic value of the proposed mining plan

### determine_period_cutoff_grades
Identifies the optimal grade threshold for each period to maximize value

### validate_blending_constraints
Checks if the planned production meets the necessary material quality specifications

## Prompt Examples

**Prompt:** 
```
Generate a production schedule for my block model with a processing capacity of 5000 tons and a mining capacity of 7000 tons.
```

**Response:** 
```
The production schedule has been generated. In Period 0, 6500 tons were mined and 5000 tons were processed with an average ore grade of 0.45%.
```

**Prompt:** 
```
What is the NPV for this mining plan given a metal price of $1500 and a discount rate of 10%?
```

**Response:** 
```
The total Net Present Value (NPV) for the proposed mining plan is $45,250,000, with total revenue of $120,000,000 and total costs of $74,750,000.
```

**Prompt:** 
```
Calculate the optimal cutoff grades for the current production schedule with a metal price of $1200 and operating cost of $300.
```

**Response:** 
```
The optimal cutoff grades for the periods are: Period 0: 0.32, Period 1: 0.35, and Period 2: 0.38.
```

## Frequently Asked Questions

**How do I calculate the project's total value?**
You can use the `calculate_project_npv` tool, providing the production schedule, cutoff grades, and economic parameters like metal price and discount rate.

**Can I check if my ore blending meets quality targets?**
Yes, the `validate_blending_constraints` tool checks if the planned production schedule complies with your specified target grades and allowed deviations.

**What inputs are needed for the production schedule?**
To use `calculate_annual_production_schedule`, you need the block model data, the processing capacity limit, and the mining capacity limit.
