insert data into script
이전 댓글 표시
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
Stephen23
2019년 2월 7일
"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
2019년 2월 7일
편집: Mazhar Ali
2019년 2월 7일
Walter Roberson
2019년 2월 7일
sscanf(fgetl(fid),'%f')
Mazhar Ali
2019년 2월 7일
Stephen23
2019년 2월 7일
Functions for importing data are explained here:
If you uploaded a sample file we could help you more.
Mazhar Ali
2019년 2월 8일
Walter Roberson
2019년 2월 8일
Is the number of resources always 4 ?
Mazhar Ali
2019년 2월 10일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Digital and Analog Filters에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!