Toolverse
All skills

casadi-ipopt-nlp

by benchflow-ai

Nonlinear optimization with CasADi and IPOPT solver. Use when building and solving NLP problems: defining symbolic variables, adding nonlinear constraints, setting solver options, handling multiple initializations, and extracting solutions. Covers power systems optimization

Installation

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

Installation

Quick info

Category
Data Science
Views
23

About this skill

Nonlinear optimization with CasADi and IPOPT solver. Use when building and solving NLP problems: defining symbolic variables, adding nonlinear constraints, setting solver options, handling multiple initializations, and extracting solutions. Covers power systems optimization patterns including per-unit scaling and complex number formulations.

How to use

  1. Zainstaluj wymagane zależności: uruchom apt-get update, zainstaluj libgfortran5, a następnie pip install numpy==1.26.4 casadi==3.6.7.

  2. Zdefiniuj zmienne decyzyjne problemu jako symbole CasADi (np. napięcia, kąty, moce) i połącz je w jeden wektor za pomocą ca.vertcat().

  3. Skonstruuj funkcję celu jako wyrażenie symboliczne CasADi, np. sumę kosztów kwadratowych dla generatorów.

  4. Zbierz wszystkie ograniczenia (równościowe i nierównościowe) w listach wyrażeń wraz z ich dolnymi i górnymi ograniczeniami, następnie połącz je w jeden wektor.

  5. Ustaw granice dla zmiennych decyzyjnych (dolne i górne), dopasowując kolejność do wektora zmiennych.

  6. Utwórz solver NLP za pomocą ca.nlpsol(), przekazując funkcję celu, zmienne, ograniczenia i ich granice, a następnie wywołaj solver z wartościami początkowymi, aby uzyskać rozwiązanie.

Related skills

web-artifacts-builder

by anthropics

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX

Data Science
37124

pdf-processing

by Ming-Kai-LC

Comprehensive PDF processing techniques for handling large files that exceed Claude Code's reading limits, including chunking strategies, text/table extraction, and OCR for scanned documents. Use when working with PDFs larger than 10-15MB or more than 30-50 pages.

Data Science
23134

xlsx

by anthropics

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2)

Data Science
40128

openrouter

by rawveg

OpenRouter API - Unified access to 400+ AI models through one API

Data Science
17138

pptx

by anthropics

Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks

Data Science
134310

notebooklm

by leegonzales

Query Google NotebookLM for source-grounded, citation-backed answers from uploaded documents. Reduces hallucinations through Gemini's document-only responses. Browser automation with library management and persistent authentication.

Data Science
142112