insert data into script
Afficher commentaires plus anciens
Hello everryone
I have a matlab code for project scheduling which takes input as given below.Can anyone help me how can i specify the mentioned inputs in a matlab script for my scheduling problem.
n = single(RCPSP.n);% Number of activities
d = single(RCPSP.d);% Processing time of each activity
K = single(RCPSP.K);% Maximum amount of stock for each resource
r = RCPSP.r; % Consumption of resources of each task
N = single(RCPSP.N);% Precedence Constraints
8 commentaires
Stephen23
le 7 Fév 2019
"Can anyone help me how can i specify the mentioned inputs..."
You could:
- get your user to input them,
- import data from a file,
- hardcode the values,
Which do you want to do?
Mazhar Ali
le 7 Fév 2019
Modifié(e) : Mazhar Ali
le 7 Fév 2019
Walter Roberson
le 7 Fév 2019
sscanf(fgetl(fid),'%f')
Mazhar Ali
le 7 Fév 2019
Stephen23
le 7 Fév 2019
Functions for importing data are explained here:
If you uploaded a sample file we could help you more.
Mazhar Ali
le 8 Fév 2019
Walter Roberson
le 8 Fév 2019
Is the number of resources always 4 ?
Mazhar Ali
le 10 Fév 2019
Réponses (0)
Catégories
En savoir plus sur Digital and Analog Filters dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!