capri-debug-solve

Diagnose CAPRI model solve failures using GAMS IDE and GDX data analysis.

16|1|Updated Jun 20, 2023
One-click install
npx skills add https://github.com/chrispahm/gams-ide --skill capri-debug-solve
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: capri-debug-solve
Source: https://github.com/chrispahm/gams-ide/tree/main/skills/capri-debug-solve
Command: npx skills add https://github.com/chrispahm/gams-ide --skill capri-debug-solve

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps users systematically diagnose and resolve complex solve failures, infeasibilities, and convergence issues within CAPRI models, preventing costly simulation delays.

Core Features & Use Cases

  • Systematic Diagnosis: Guides users through checking solve status, identifying problem symbols, and inspecting data.
  • Targeted Debugging: Provides specific SQL queries and GAMS IDE tool usage for common CAPRI failure patterns (e.g., Armington bound issues, TRQ switching).
  • Use Case: When a CAPRI market model simulation fails with a "locally infeasible" error, this Skill provides a step-by-step workflow to pinpoint the problematic equations and variables, offering targeted solutions.

Quick Start

Use the capri-debug-solve skill to analyze the latest listing file for solve status and infeasibilities.

Frequently Asked Questions about capri-debug-solve

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug a CAPRI model solve failure with a locally infeasible error?

To debug a CAPRI model solve failure, analyze the latest listing file to check solve status, identify problematic equations and variables using GAMS IDE tools, and inspect GDX data to pinpoint infeasibility root causes.

Why does my CAPRI market model simulation fail to converge during iterative processes?

CAPRI convergence issues often stem from Armington bound conflicts, TRQ regime switching, or CONOPT solver difficulties. Diagnosing these requires systematically checking problem symbols and inspecting data inputs for market and supply model inconsistencies.

What is the best way to identify infeasibilities in CAPRI GAMS simulations?

The best way to identify infeasibilities in CAPRI GAMS simulations is utilizing GAMS IDE tools alongside targeted SQL queries to inspect GDX data, systematically isolating problematic equations within the market and supply models.

How do I resolve CONOPT solver difficulties and TRQ switching issues in CAPRI?

Resolve CONOPT solver and TRQ switching issues in CAPRI by following a targeted debugging workflow that analyzes the GDX data and listing file to detect specific failure patterns within the supply and market model equations.

Can I use GAMS IDE tools to diagnose Armington bound issues in CAPRI models?

Yes, you can use GAMS IDE tools to diagnose Armington bound issues in CAPRI models by inspecting the GDX data and listing file output to trace bound violations back to their root cause equations.

What should I check first when a CAPRI supply model simulation stops with solver issues?

When a CAPRI supply model simulation stops with solver issues, first check the solve status in the listing file, then identify the problem symbols and inspect the corresponding GDX data for infeasibilities or convergence breaks.