<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[AsmallFROG的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/AsmallFROG</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; AsmallFROG]]></copyright><item><title><![CDATA[Cell-Transmission Model, CTM, 元胞传输模型解读]]></title><link>https://blog.csdn.net/AsmallFROG/article/details/129626929</link><guid>https://blog.csdn.net/AsmallFROG/article/details/129626929</guid><author>AsmallFROG</author><pubDate>Fri, 17 Mar 2023 21:32:23 +0800</pubDate><description><![CDATA[因为网上关于CTM的讲解、教程几乎搜不到或没有更深入的解释，并且Daganzo大佬的文章确实有些难懂，里面有些内容写的不是很详细，所以写下这篇博客，望与大家分享、交流。若有疏漏，还望指出。对于cell大小的设定可变性较大。选择多大合适、如何因地制宜，是一个问题。对于MFD强烈的假设，如高密度时候q-k的分布难以近似成直线等。]]></description><category></category></item><item><title><![CDATA[SUMO 交通小区 OD流量建模 OD转换交通流]]></title><link>https://blog.csdn.net/AsmallFROG/article/details/124425150</link><guid>https://blog.csdn.net/AsmallFROG/article/details/124425150</guid><author>AsmallFROG</author><pubDate>Wed, 27 Apr 2022 11:48:23 +0800</pubDate><description><![CDATA[**官方文档描述：**https://sumo.dlr.de/userdoc/Demand/Importing_O/D_Matrices.html
假定要求小区8向小区20发车：

假定小区1向小区2发车，每秒发一辆，一共发出三百辆。则需要定义两个文件，小区附加文件taz.xml和车辆运行文件rou.xml。其中小区文件定义如下：

...]]></description><category></category></item><item><title><![CDATA[Tensorflow/Keras/h5py报错处理]]></title><link>https://blog.csdn.net/AsmallFROG/article/details/123612193</link><guid>https://blog.csdn.net/AsmallFROG/article/details/123612193</guid><author>AsmallFROG</author><pubDate>Sun, 20 Mar 2022 14:35:26 +0800</pubDate><description><![CDATA[个人经历记录贴，若有侵请联系我谢谢。
目录Python/Tensorflow/Keras版本对应AttributeError: module 'h5py' has no attribute 'File'AttributeError: 'str' object has no attribute 'decode'
Python/Tensorflow/Keras版本对应
按理说Tensorflow 2.x已经集成了Keras 如果有报错可能需要检查一下版本对应。
关于h5py，Tensorflow2.1 不支持 ]]></description><category></category></item><item><title><![CDATA[python用matplotlib画图提示Fail to allocate bitmap]]></title><link>https://blog.csdn.net/AsmallFROG/article/details/122114082</link><guid>https://blog.csdn.net/AsmallFROG/article/details/122114082</guid><author>AsmallFROG</author><pubDate>Thu, 23 Dec 2021 18:40:30 +0800</pubDate><description><![CDATA[Fail to allocate bitmap，内存不够。
pycharm里一直在生成图形，虽然没用plt.show()但是还是占内存。
在导入模块时使用：
import matplotlib
matplotlib.use("Agg")

参考：matplotlib.use(‘agg’)的作用

]]></description><category></category></item><item><title><![CDATA[程序进程可视化（tqdm进度条）]]></title><link>https://blog.csdn.net/AsmallFROG/article/details/121176621</link><guid>https://blog.csdn.net/AsmallFROG/article/details/121176621</guid><author>AsmallFROG</author><pubDate>Sat, 06 Nov 2021 12:06:41 +0800</pubDate><description><![CDATA[处理较大数据文件（.txt  .csv）时需要知晓程序运行的进程，方便掌握运行情况。使用进度条可以直观清晰地实现这一想法。
使用 tqdm 库在 Python 循环中添加一个进度提示信息，只需要封装任意的迭代器 tqdm(iterator) 即可。
from tqdm import tqdm  # 导入库函数

for i in tqdm(range(len(data_input))):  # tqdm 可视化展示进程
    # 演示代码，输入你要执行的循环即可
    data_input[i, :] ]]></description><category></category></item><item><title><![CDATA[基于DRL的城市TSC 综述笔记（一）]]></title><link>https://blog.csdn.net/AsmallFROG/article/details/120894987</link><guid>https://blog.csdn.net/AsmallFROG/article/details/120894987</guid><author>AsmallFROG</author><pubDate>Sun, 24 Oct 2021 16:00:28 +0800</pubDate><description><![CDATA[目录问题设定1. State 状态2. Action 动作3. Reward 奖励4. 仿真环境单点深度强化学习方法1. 基本方法2. 改进的方法
问题设定
一般而言，一个或多个Agent控制路网交通信号。

Agent — 交通信号灯
enviroment — 道路交通状态
ttt — 时刻
sts_tst​ — 状态，表示对环境的描述。如车辆位置、速度、排队长等

1. State 状态

离散化交通状态编码。即将交叉口分割为固定长度的网格，通过每个网格中的布尔值确定该位置是否存在车辆。可获得高分辨率交]]></description><category></category></item><item><title><![CDATA[Gurobi 解运输问题 python]]></title><link>https://blog.csdn.net/AsmallFROG/article/details/120876503</link><guid>https://blog.csdn.net/AsmallFROG/article/details/120876503</guid><author>AsmallFROG</author><pubDate>Thu, 21 Oct 2021 13:30:51 +0800</pubDate><description><![CDATA[这里写自定义目录标题1. 问题描述2. 模型建立及代码实现模型建立如何插入一段漂亮的代码片
1. 问题描述
本例产销平衡问题取自清华大学出版社《运筹学（第四版）》P94例1。问该公司应如何调运产品，在满足各销点的需要量的前提下，是总运输费最小。单位运价表和产销平衡表如下：
单位运价表




加工厂 \ 销地
B1B_1B1​
B2B_2B2​
B3B_3B3​
B4B_4B4​




A1A_1A1​
3
11
3
10


A2A_2A2​
1
9
2
8


A3A_3A3​
7
4
10
5


]]></description><category></category></item></channel></rss>