simple_highs_solver
Solve HiGHs linear programming problems with a simplified interface, minimizing setup complexity. Define objective coefficients, variables, constraints, and right-hand side values to obtain optimal solutions or error messages.
Instructions
A simplified interface for solving HiGHs linear programming problems.
This tool provides a more straightforward interface for HiGHs problems,
without requiring the full HiGHSProblem model structure.
Args:
sense: Optimization sense, either "minimize" or "maximize"
objective_coeffs: List of objective function coefficients
variables: List of variable definitions with optional bounds and types
constraint_matrix: 2D list representing the constraint matrix (dense format)
constraint_senses: List of constraint directions ("<=", ">=", "=")
rhs_values: List of right-hand side values for constraints
options: Optional solver options dictionary
description: Optional description of the problem
Returns:
A list of TextContent containing the solution or an error message
Input Schema
Name | Required | Description | Default |
---|---|---|---|
constraint_matrix | Yes | ||
constraint_senses | Yes | ||
description | No | ||
objective_coeffs | Yes | ||
options | No | ||
rhs_values | Yes | ||
sense | Yes | ||
variables | Yes |
Input Schema (JSON Schema)
{
"properties": {
"constraint_matrix": {
"items": {
"items": {
"type": "number"
},
"type": "array"
},
"title": "Constraint Matrix",
"type": "array"
},
"constraint_senses": {
"items": {
"type": "string"
},
"title": "Constraint Senses",
"type": "array"
},
"description": {
"default": "",
"title": "Description",
"type": "string"
},
"objective_coeffs": {
"items": {
"type": "number"
},
"title": "Objective Coeffs",
"type": "array"
},
"options": {
"anyOf": [
{
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Options"
},
"rhs_values": {
"items": {
"type": "number"
},
"title": "Rhs Values",
"type": "array"
},
"sense": {
"title": "Sense",
"type": "string"
},
"variables": {
"items": {
"type": "object"
},
"title": "Variables",
"type": "array"
}
},
"required": [
"sense",
"objective_coeffs",
"variables",
"constraint_matrix",
"constraint_senses",
"rhs_values"
],
"title": "simple_highs_solverArguments",
"type": "object"
}