Currently, we call solve() which internally calls load_data_and_params and write_solution. Ideally, load_data_and_params should be called before solve is called and its output should be passed onto solve. solve should return the solved model and then write_solution should be called with the necessary data as input.
Currently, we call solve() which internally calls
load_data_and_params
andwrite_solution
. Ideally,load_data_and_params
should be called before solve is called and its output should be passed ontosolve
.solve
should return the solved model and thenwrite_solution
should be called with the necessary data as input.