insert data into script
Mostra commenti meno recenti
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 Commenti
Stephen23
il 7 Feb 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
il 7 Feb 2019
Modificato: Mazhar Ali
il 7 Feb 2019
Walter Roberson
il 7 Feb 2019
sscanf(fgetl(fid),'%f')
Mazhar Ali
il 7 Feb 2019
Stephen23
il 7 Feb 2019
Functions for importing data are explained here:
If you uploaded a sample file we could help you more.
Mazhar Ali
il 8 Feb 2019
Walter Roberson
il 8 Feb 2019
Is the number of resources always 4 ?
Mazhar Ali
il 10 Feb 2019
Risposte (0)
Categorie
Scopri di più su Digital and Analog Filters in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!