{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# check the change of objective values\n", "\n", "import matplotlib.pyplot as plt\n", "import numpy as np\n", "\n", "fpath='objective_function.txt'\n", "\n", "objs=[]\n", "\n", "with open(fpath) as f:\n", " lines = f.readlines()\n", "\n", " for l in lines:\n", " if(l.startswith('i_inv')):\n", " continue\n", " objs.append(float(l.strip().split(',')[1]))\n", "\n", "\n", "plt.plot(objs)\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "interpreter": { "hash": "fbd0b2a7df497f398d93ab2f589d8a5daa3108cfb7ff2b90736653cca3aeadc0" }, "kernelspec": { "display_name": "Python 3.9.1 64-bit ('3.9.1')", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.9.1" } }, "nbformat": 4, "nbformat_minor": 2 }