How to call This function
Ältere Kommentare anzeigen
function [ solution ] = knapsack_generate_random( problem, ~ ) %KNAPSACK_INITIALIZE_RANDOM generates a solution for the problem
solution = randi(2,1,problem.n_var)-1;
end
1 Kommentar
aadhil basha
am 22 Sep. 2013
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Fixed-Point Designer finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!