代码搜索:如何学习 Best?
找到约 10,000 项符合「如何学习 Best?」的源代码
代码结果 10,000
www.eeworm.com/read/447794/7545550
java company.java
package game;
public class Company {
//公司的id号
int id;
//公司所在游戏环境中的位置
int x,y;
//现行的策略
int action;
//博弈后学习的策略
//int best_action;
//本次博弈收益
double profile;
www.eeworm.com/read/443978/7619721
asv initial.asv
%程序初始化
gen=50; %设置进化代数
popsize=50; %设置种群规模大小
best_in_history(gen)=inf; %初始化全局历史最优解
best_in_history(:)=inf; %初始化全局历史最优解
max_velocity=0.5;
%popnum=1; %设置种群数量
pop(popsize,8)=
www.eeworm.com/read/443978/7619729
asv outputdata.asv
%实时输出结果
%输出当前种群中粒子位置
subplot(1,2,1);
for i=1:popsize
plot(pop(i,1),pop(i,2),'b*');
hold on;
end
plot(gbest_x,gbest_y,'r.','markersize',20);axis([-2,2,-2,2]);
hold off;
subplot(1
www.eeworm.com/read/441228/7673635
m sgalab_demo_mo_showall.m
% /*M-FILE SCRIPT SGALAB_DEMO_MO_showall MMM SGALAB */ %
% /*==================================================================================================
% Simple Genetic Algorithm Laboratory T
www.eeworm.com/read/440731/7682471
m outputdata.m
function outputdata
global swarm_size; % 种群规模
global swarm; % 种群,三维数组
global w; % 速度惯性系数,为0—1的随机数
global c1; % 个体最优导向系数
global c2; % 全局最优导向系数
g
www.eeworm.com/read/299300/7867679
asv initial.asv
%程序初始化
gen=50; %设置进化代数
popsize=50; %设置种群规模大小
best_in_history(gen)=inf; %初始化全局历史最优解
best_in_history(:)=inf; %初始化全局历史最优解
max_velocity=0.5;
%popnum=1; %设置种群数量
pop(popsize,8)=
www.eeworm.com/read/299300/7867725
asv outputdata.asv
%实时输出结果
%输出当前种群中粒子位置
subplot(1,2,1);
for i=1:popsize
plot(pop(i,1),pop(i,2),'b*');
hold on;
end
plot(gbest_x,gbest_y,'r.','markersize',20);axis([-2,2,-2,2]);
hold off;
subplot(1
www.eeworm.com/read/199277/7870327
cpp 2d_convergence.cpp
#include
using namespace meep;
#include "config.h"
const double diameter = 0.8;
const double r = diameter*0.5;
double holey_2d(const vec &xx) {
const volume v = vol2d(2.0,1.0,100.0);
www.eeworm.com/read/198334/7940072
m paint.m
%图形绘制
cla;
subplot(2,2,1);
for i=1:city_n
plot(pos(i,1),pos(i,2),'.');hold on;
end
hold off;
for i=1:(city_n-1)
a=tobu_A(min_pos,i);
b=tobu_A(min_pos,i+1);
line([pos(a,1)
www.eeworm.com/read/197100/8030471
cpp docqual.cpp
/******************************************************************
* File: docqual.cpp (Formerly docqual.c)
* Description: Document Quality Metrics
* Author: Phil Cheatle
* Created: Mon