BALANCE
General mass/energy balance solver using GEKKO
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"VARIABLE": "<VARIABLE>",
"EQUATION": "<EQUATION>"
},
"name": "BALANCE"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| EQUATION | Yes | Equality/inequality constraints. Keys prefixed eq/ge/le/gt/lt. Each entry: {'left': expr, 'right': expr}. | |
| MAXIMIZE | No | Objective to maximize. Format: {'left': 'maxtarget', 'right': 'expr'}. | |
| MINIMIZE | No | Objective to minimize. Format: {'left': 'mintarget', 'right': 'expr'}. | |
| VARIABLE | Yes | Decision variables. Each entry: [lb, init, ub] for free variable, or [fixed, fixed, fixed] for constant. |