Toolverse
All skills

constrained-optimization

by parcadei

Problem-solving strategies for constrained optimization in optimization

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
parcadei
Category
Data Science
Views
22

About this skill

Problem-solving strategies for constrained optimization in optimization

How to use

  1. Zainstaluj skill w swoim środowisku Claude, upewniając się że masz dostęp do narzędzi Bash i Read.

  2. Zidentyfikuj typ ograniczeń w swoim problemie: czy są to ograniczenia równościowe (h(x) = 0), nierównościowe (g(x) ≤ 0) czy ograniczenia na zmienne (l ≤ x ≤ u). Ta klasyfikacja determinuje wybór metody.

  3. Dla problemów z ograniczeniami równościowymi użyj metody Lagrange'a. Skonstruuj funkcję Lagrange'a L(x, lambda) = f(x) + suma lambda_j * h_j(x), następnie uruchom: uv run python -m runtime.harness scripts/sympy_compute.py solve z odpowiednim systemem równań gradientu i ograniczeń.

  4. Dla problemów z ograniczeniami nierównościowymi zastosuj warunki KKT. Rozszerz Lagrange'a o mnożniki mu_i, sprawdzając warunek komplementarności mu_i * g_i(x) = 0. Uruchom: uv run python -m runtime.harness scripts/z3_solve.py prove "complementary_slackness".

  5. Alternatywnie, użyj bezpośrednio SciPy do rozwiązania numerycznego: uv run python -c z funkcją scipy.optimize.minimize, metodą SLSQP, przekazując ograniczenia jako listę słowników z typami 'eq' i 'ineq' oraz bounds dla zmiennych.

  6. Jeśli metody analityczne nie zbiegają, zastosuj metody kary (dodaj P(x) = rho * suma max(0, g_i(x))^2) lub metody barier (dodaj B(x) = -suma log(-g_i(x))), iteracyjnie zmieniając parametry kary lub bariery.

Related skills

quant-analyst

by zenobi-us

Expert quantitative analyst specializing in financial modeling, algorithmic trading, and risk analytics. Masters statistical methods, derivatives pricing, and high-frequency trading with focus on mathematical rigor, performance optimization, and profitable strategy development.

Data Science
67217

market-analysis

by xbklairith

Use when analyzing markets or interpreting charts - applies technical indicators (RSI, MACD, Moving Averages), identifies support/resistance, analyzes multi-timeframe trends, checks fundamentals and sentiment. Activates when user says \

Data Science
29144

docx

by anthropics

Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content,

Data Science
39142

codex

by Lucklyric

Invoke Codex CLI for complex coding tasks requiring high reasoning capabilities. This skill should be invoked when users explicitly mention \

Data Science
16163

skill-installer

by openai

Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).

Data Science
23118

moon-dev-trading-agents

by moondevonyt

Master Moon Dev's Ai Agents Github with 48+ specialized agents, multi-exchange support, LLM abstraction, and autonomous trading capabilities across crypto markets

Data Science
102232