Download OpenAPI specification:Download
AMPLRESTAPI is a custom asynchronous REST API layer written in modern Python to solve optimization problems in AMPL. At the moment, there's a single problem available, the "Just In Time Computation" problem (JIT).
This operation attempts to solve the JIT problem. The input data must be provided in JSON format. The input should be made of the decisional variables, the fixed malus cost and the number of programs to be computed one-at-a-time.
Problem decisional variables, fixed malus cost, number of batches
duration required | Array of integers (JITDurationArray) |
expected_finish required | Array of strings <datetime> (JITExpectedFinishArray) |
wrong_time_fee required | integer (JITWrongTimeFee) Fixed cost (in dollars) that must be payed for each minute of early or delayed computations |
n_batches required | integer (JITNumberOfBatches) Number of programs to be processed by the server. This parameter is used to validate the length of the array of durations and expected finish datetimes. |
OK, return the results and some info about how AMPL and CPLEX solved the problem
Bad Request Error, could not parse the input data of the current request
Unprocessable Entity Error, the input data isn't semantically valid.
Local AMPL REST server