Skip to main content
Glama

USolver

by sdiehl

simple_cvxpy_solver

Solve CVXPY optimization problems with a simplified interface. Define variables, objective type, expression, constraints, and parameters to obtain solutions or error messages.

Instructions

A simpler interface for solving CVXPY optimization problems.

This tool provides a more straightforward interface for CVXPY problems, without requiring the full CVXPYProblem model structure. Args: variables: List of variable definitions, each with 'name' and 'shape' objective_type: Either 'minimize' or 'maximize' objective_expr: The objective function expression as a string constraints: List of constraint expressions as strings parameters: Dictionary of parameter values (e.g., matrices A, b) description: Optional description of the problem Returns: A list of TextContent containing the solution or an error message

Input Schema

NameRequiredDescriptionDefault
constraintsYes
descriptionNo
objective_exprYes
objective_typeYes
parametersNo
variablesYes

Input Schema (JSON Schema)

{ "properties": { "constraints": { "items": { "type": "string" }, "title": "Constraints", "type": "array" }, "description": { "default": "", "title": "Description", "type": "string" }, "objective_expr": { "title": "Objective Expr", "type": "string" }, "objective_type": { "title": "Objective Type", "type": "string" }, "parameters": { "anyOf": [ { "type": "object" }, { "type": "null" } ], "default": null, "title": "Parameters" }, "variables": { "items": { "type": "object" }, "title": "Variables", "type": "array" } }, "required": [ "variables", "objective_type", "objective_expr", "constraints" ], "title": "simple_cvxpy_solverArguments", "type": "object" }

You must be authenticated.

Other Tools from USolver

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sdiehl/usolver'

If you have feedback or need assistance with the MCP directory API, please join our Discord server