代码搜索:Best 有哪些应用?
找到约 10,000 项符合「Best 有哪些应用?」的源代码
代码结果 10,000
www.eeworm.com/read/158224/5597800
sci draw_tsp.sci
function [x]=draw_TSP(traceInfo,best,pareto,Opt)
global city_loc;
n = size(best,2)-1;
//disp(best(1:n));
//disp(city_loc(best(1:n),1));
//disp(city_loc(best(1:n),2));
xbasc();
//xset("wresi
www.eeworm.com/read/158224/5597808
sci draw_result.sci
function [x]=draw_result(traceinfo,best_one,pareto,Opt)
global user_stop
gen = traceinfo(:,1)';
best_fit = traceinfo(:,2)';
mean_fit = traceinfo(:,3)';
var_fit = traceinfo(:,4)';
n = size(gen,2)
www.eeworm.com/read/474218/6816683
cpp proj2.cpp
// By Youhanna Parvizinejad 83405169 + Keyvan Nakhaiee + mehdi farahmandfar
#include
#include
#include
#include
#include
#include
#inc
www.eeworm.com/read/294775/8206281
c display.c
/*------------------------------------------------------------------- DISPLAY_DISTANCES */
void display_distances(struct swarm sw)
{
/* Display all distances between particles of a swarm
*/
int i
www.eeworm.com/read/368154/9708911
m pso.m
%% Particle Swarm Optimization Simulation
% Simulates the movements of a swarm to minimize the objective function
%
% $$ \left( x-15 \right) ^{2}+ \left( y-20 \right) ^{2} = 0$$
%
% The swarm m
www.eeworm.com/read/367862/9726266
asv initial.asv
%程序初始化
gen=100; %设置进化代数
popsize=30; %设置种群规模大小
best_in_history(gen)=inf; %初始化全局历史最优解
best_in_history(:)=inf; %初始化全局历史最优解
max_velocity=0.3ones(N,N); %最大速度限制
best_fitness=inf;
www.eeworm.com/read/367862/9726273
m initial.m
%程序初始化
gen=100; %设置进化代数
popsize=30; %设置种群规模大小
best_in_history(gen)=inf; %初始化全局历史最优解
best_in_history(:)=inf; %初始化全局历史最优解
max_velocity=0.3*ones(N,N); %最大速度限制
best_fitness=inf;
www.eeworm.com/read/414450/11111679
muse p11.muse
#title P11: 背包问题的搜索解法
《背包问题九讲》的本意是将背包问题作为动态规划问题中的一类进行讲解。但鉴于的确有一些背包问题只能用搜索来解,所以这里也对用搜索解背包问题做简单介绍。大部分以01背包为例,其它的应该可以触类旁通。
* 简单的深搜
对于01背包问题,简单的深搜的复杂度是O(2^N)。就是枚举出所有2^N种将物品放入背包的方案,然后找最优解。基本框架如下:
...