Currently OptimizerTcpManager.call returns a dictionary. We should convert the response of the TCP server into an appropriate object.
We will need some classes, such as (indicatively):
SolverStatus (status of the solver, exit flag, solution, number of inner/outer iterations, etc)
SolverError
SolverResponse, which will store either a SolverStatus or a SolverError and will be equipped with methods like is_ok(), is_err() and get_solver_status() / get_solver_error() (or simply get())
Currently
OptimizerTcpManager.call
returns a dictionary. We should convert the response of the TCP server into an appropriate object.We will need some classes, such as (indicatively):
SolverStatus
(status of the solver, exit flag, solution, number of inner/outer iterations, etc)SolverError
SolverResponse
, which will store either aSolverStatus
or aSolverError
and will be equipped with methods likeis_ok()
,is_err()
andget_solver_status()
/get_solver_error()
(or simplyget()
)