do-mpc: Prepare next iteration and store information ------------------------------------------------------ """ # Store the information configuration_1.store_mpc_data() # Set initial condition constraint for the next iteration configuration_1.prepare_next_iter() """ ------------------------------------------------------ do-mpc: Plot MPC animation if chosen by the user ------------------------------------------------------ """ # Plot animation if chosen in by the user data_do_mpc.plot_animation(configuration_1) """ ------------------------------------------------------ do-mpc: Plot the closed-loop results ------------------------------------------------------ """ data_do_mpc.plot_mpc(configuration_1) # Export to matlab if wanted data_do_mpc.export_to_matlab(configuration_1) input("Press Enter to exit do-mpc...")
configuration_1.make_step_observer() """ ------------------------------------------------------ do-mpc: Prepare next iteration and store information ------------------------------------------------------ """ # Store the information configuration_1.store_mpc_data() # Set initial condition constraint for the next iteration configuration_1.prepare_next_iter() """ ------------------------------------------------------ do-mpc: Plot MPC animation if chosen by the user ------------------------------------------------------ """ # Plot animation if chosen in by the user data_do_mpc.plot_animation(configuration_1) """ ------------------------------------------------------ do-mpc: Plot the closed-loop results ------------------------------------------------------ """ data_do_mpc.plot_mpc(configuration_1) # Export to matlab if wanted data_do_mpc.export_to_matlab(configuration_1) input("Press Enter to exit do-mpc...")
------------------------------------------------------ do-mpc: Prepare next iteration and store information ------------------------------------------------------ """ # Store the information vars()['configuration_' + zone].store_mpc_data() # Set initial condition constraint for the next iteration vars()['configuration_' + zone].prepare_next_iter() """ ------------------------------------------------------ do-mpc: Plot MPC animation if chosen by the user ------------------------------------------------------ """ # Plot animation if chosen in by the user data_do_mpc.plot_animation(vars()['configuration_' + zone]) """ ------------------------------------------------------ do-mpc: Plot the closed-loop results ------------------------------------------------------ """ elapsed_time = time.time() - start_time #print elapsed_time print 'Elapsed Time: ' + str(elapsed_time) for i in range(len(configurations)): consumedpower = NP.sum(configurations[i].simulator.Heatrate) print "Consumed Power: " + str(consumedpower) + " [W]" data_do_mpc.plot_mpc(configurations[i]) # Export to matlab if wanted