Optimatika Optimisation Service
Solve linear, quadratic and mixed-integer optimisation models; get each variable's value by name.
¿Debería usar esto?
Calidad y seguridad
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"optimisation-service": {
"url": "https://service-api.optimatika.se/optimisation/mcp"
}
}
}Puntos de conexión remotos
https://service-api.optimatika.se/optimisation/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (3)
🟢solve(model, format, sense)
Solves a linear, quadratic or mixed-integer optimisation model and returns the solution state, the objective value and each variable's value by name. Give the model as text, in LP format unless 'format' says otherwise. For example: Maximize obj: 3 x + 5 y Subject To budget: x + y <= 10 Bounds 0 <= x <= 8 General x End A coefficient goes before its variable with a space, as in 3 x: there is no * for that, no division and no parentheses. Variables go on the left-hand side, and a single number on the right. Squares and products go together inside one pair of square brackets, each with its coefficient inside too, written as a single number: [ 0.5 x ^2 + 0.004 x * y + 3 y ^2 ], not 0.5 [ x ^2 ] or 2 * 0.002 x * y. A variable is 0 or more unless Bounds says otherwise; General makes it integer, Binary 0 or 1. What is not LP format is an error that names the line. A long solve reports progress, if asked for. OPTIMAL means proven optimal; FEASIBLE means a solution was found but not proven optimal, typically because a time limit was reached. The objective and the variables' values are given only with a solution, and 'note' explains any other state.
Esquema de entrada
{
"type": "object",
"properties": {
"model": {
"type": "string",
"description": "The model, as text"
},
"format": {
"type": "string",
"enum": [
"LP",
"MPS",
"EBM"
],
"default": "LP",
"description": "LP (CPLEX LP format), MPS, or EBM (ojAlgo's own)"
},
"sense": {
"type": "string",
"enum": [
"MIN",
"MAX"
],
"description": "Minimise or maximise. Overrides what the model says; LP and MPS models say it themselves, EBM ones do not"
}
},
"required": [
"model"
],
"additionalProperties": false
}Esquema de salida
{
"type": "object",
"properties": {
"state": {
"type": "string",
"description": "OPTIMAL, DISTINCT (optimal and the only optimum), FEASIBLE, INFEASIBLE, UNBOUNDED, APPROXIMATE, FAILED, or another of ojAlgo's solution states"
},
"optimal": {
"type": "boolean"
},
"feasible": {
"type": "boolean"
},
"objective": {
"type": "number",
"description": "Absent unless there is a solution"
},
"variables": {
"type": "object",
"additionalProperties": {
"type": [
"number",
"null"
]
},
"description": "Each variable's value, by name. Absent unless there is a solution"
},
"note": {
"type": "string",
"description": "What the state means, when it is not OPTIMAL"
}
},
"required": [
"state",
"optimal",
"feasible"
]
}🟢translate(model, from, to)
Rewrites an optimisation model from one file format to another: LP (CPLEX LP format), MPS, or EBM (ojAlgo's own).
Esquema de entrada
{
"type": "object",
"properties": {
"model": {
"type": "string",
"description": "The model, as text"
},
"from": {
"type": "string",
"enum": [
"LP",
"MPS",
"EBM"
]
},
"to": {
"type": "string",
"enum": [
"LP",
"MPS",
"EBM"
]
}
},
"required": [
"model",
"from",
"to"
],
"additionalProperties": false
}🟢environment
Reports what a model solved here may be: how large, how long it may run, and which solvers are available.
Esquema de entrada
{
"type": "object",
"additionalProperties": false
}Comunidad
Evidencia