insert data into script
Show older comments
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 Comments
Stephen23
on 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
on 7 Feb 2019
Edited: Mazhar Ali
on 7 Feb 2019
Walter Roberson
on 7 Feb 2019
sscanf(fgetl(fid),'%f')
Mazhar Ali
on 7 Feb 2019
Stephen23
on 7 Feb 2019
Functions for importing data are explained here:
If you uploaded a sample file we could help you more.
Mazhar Ali
on 8 Feb 2019
Walter Roberson
on 8 Feb 2019
Is the number of resources always 4 ?
Mazhar Ali
on 10 Feb 2019
Answers (0)
Categories
Find more on Digital and Analog Filters in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!