上一页 1 2 3 4 5 6 7 8 ··· 11 下一页

2013年5月9日

matlab 中的fmincon参数设定问题

摘要: 对一个函数f(x)求极小值。TolCon:对参数dx的要求。TolFun:对函数f的精度要求。MaxIter:最大迭代次数。from kakamilan 阅读全文

posted @ 2013-05-09 12:41 kakamilan 阅读(987) 评论(0) 推荐(0) 编辑

2013年5月5日

各种蛋疼配置问题汇总

摘要: goagent自动启动matlabfminconfrom kakamilan 阅读全文

posted @ 2013-05-05 16:28 kakamilan 阅读(104) 评论(0) 推荐(0) 编辑

goagent 配置问题

摘要: windows下可以直接运行local下的addto-startup.vbsubuntu下系统--首选项--启动应用程序里面添加一条命令, python 所在目录/local/proxy.pyfrom kakamilan 阅读全文

posted @ 2013-05-05 16:14 kakamilan 阅读(20) 评论(0) 推荐(0) 编辑

2013年5月3日

SRM 578 DIV2 DIV1

摘要: 玩了二十多次,终于杀到了div1,纪念一下1、水题,求最大最小值的问题。2、话说找工作的时候有道类似的题,也是在图上遍历,然后将符合性质的点归为一类,将种类数计为n,且最少有一个,那么就是 2^n - 1种。 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <cstdlib> 5 #include <cmath> 6 #include <map> 7 #include <stack> 8 #include < 阅读全文

posted @ 2013-05-03 11:20 kakamilan 阅读(332) 评论(0) 推荐(0) 编辑

poj 3436 最大流+拆点

摘要: 今天总算明白了最大流中的拆点的含义,因为最大流的中两个点u和v,流量的限制记为cap(u,v),如果一个点u的流量限制为m,那么我们可以把u拆成u1和u2,并且对任意的s,将cap(s,u)换成cap(s,u1),对任意的e,将cap(u,e)换成cap(u1,e),最后将cap(u1,u2)置为m,然后套用最大流的通用算法即可 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <cstdlib> 5 #include <cmath> 6 阅读全文

posted @ 2013-05-03 08:45 kakamilan 阅读(211) 评论(0) 推荐(0) 编辑

2013年5月2日

POJ 1459--最大流算法

摘要: cin竟然比scanf慢了十几倍,想不通#include <iostream>#include <string>#include <vector>#include <cstdlib>#include <cmath>#include <map>#include <algorithm>#include <list>#include <ctime>#include <set>#include <queue>#include <cstring>#include 阅读全文

posted @ 2013-05-02 21:38 kakamilan 阅读(146) 评论(0) 推荐(0) 编辑

2013年4月9日

POJ 1068

摘要: 采用的模拟的方法,应该会有更好的数学上的办法吧~~~ 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <cstdlib> 5 #include <cmath> 6 #include <map> 7 #include <stack> 8 #include <algorithm> 9 #include <list>10 #include <ctime>11 #include < 阅读全文

posted @ 2013-04-09 01:08 kakamilan 阅读(285) 评论(0) 推荐(0) 编辑

2013年4月2日

poj 1328

摘要: 1、贪心算法,刚开始不知道哪里搞错了,总是超时.... 1 #include<cstdio> 2 #include<algorithm> 3 #include<cstring> 4 #include<queue> 5 #include<math.h> 6 #include <iostream> 7 #include <string> 8 #include <vector> 9 #include <cstdlib>10 #include <cmath>11 #include & 阅读全文

posted @ 2013-04-02 17:12 kakamilan 阅读(226) 评论(0) 推荐(0) 编辑

2013年4月1日

TCO 2013 2A

摘要: 1、DP的算法~~~ 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <cstdlib> 5 #include <cmath> 6 #include <map> 7 #include <algorithm> 8 #include <list> 9 #include <ctime>10 #include <set>11 #include <queue>12 13 usi 阅读全文

posted @ 2013-04-01 21:05 kakamilan 阅读(295) 评论(0) 推荐(0) 编辑

2013年3月31日

poj 1753 2965

摘要: 状态压缩+枚举 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <cstdlib> 5 #include <cmath> 6 #include <map> 7 #include <algorithm> 8 #include <list> 9 #include <ctime>10 #include <set>11 #include <queue>12 13 using 阅读全文

posted @ 2013-03-31 22:21 kakamilan 阅读(133) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 11 下一页

导航