{"slug":"api-autotunempc-com-v1-solve-fc4558","title":"A constrained nonlinear MPC step for robotics, energy storage, and process contr","host":"api.autotunempc.com","method":"POST","resource":"https://api.autotunempc.com/v1/solve","category":"other","description":"A constrained nonlinear MPC step for robotics, energy storage, and process control. CasADi builds the program and IPOPT returns u0 plus the predicted trajectory and solver status. A session_id keeps the warm start for that closed loop.","price_listed":0.02,"price_asked":0.02,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":618,"reported_calls_30d":2,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"Q":[[1,0],[0,1]],"Qf":[[1,0],[0,1]],"R":[[0.1]],"Rd":[[0.1]],"system":{"N":8,"kind":"nonlinear","name":"double_integrator","parameters":{"dt":0.1}},"x0":[0,0],"x_ref":[1,0]},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"description":"Plant, horizon, state, reference, and stage weights for one MPC solve.","properties":{"Q":{"type":"array"},"Qf":{"type":"array"},"R":{"type":"array"},"Rd":{"type":"array"},"session_id":{"type":"string"},"system":{"type":"object"},"x0":{"type":"array"},"x_ref":{"type":"array"}},"required":["system","x0","x_ref","Q","R","Rd","Qf"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"description":"First input, predicted trajectories, and IPOPT status.","properties":{"solve_time_ms":{"type":"number"},"status":{"type":"string"},"success":{"type":"boolean"},"u0":{"type":"array"}},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.02,"price_match":true,"latency_ms":612,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.02,"price_match":true,"latency_ms":604,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.02,"price_match":true,"latency_ms":610,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.02,"price_match":true,"latency_ms":626,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.02,"price_match":true,"latency_ms":641,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.02,"price_match":true,"latency_ms":644,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.02,"price_match":true,"latency_ms":618,"error":null}],"description_full":"A constrained nonlinear MPC step for robotics, energy storage, and process control. CasADi builds the program and IPOPT returns u0 plus the predicted trajectory and solver status. A session_id keeps the warm start for that closed loop.","last_updated":"2026-11-20T04:28:30.923Z","schemes":["exact"]}