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 Kommentare

Stephen23
Stephen23 am 7 Feb. 2019
"Can anyone help me how can i specify the mentioned inputs..."
You could:
  1. get your user to input them,
  2. import data from a file,
  3. hardcode the values,
Which do you want to do?
Mazhar Ali
Mazhar Ali am 7 Feb. 2019
Bearbeitet: Mazhar Ali am 7 Feb. 2019
2.import data from file.but cant understand how to do it?..need help
Walter Roberson
Walter Roberson am 7 Feb. 2019
sscanf(fgetl(fid),'%f')
Mazhar Ali
Mazhar Ali am 7 Feb. 2019
Can't understand how to implement this function to my problem
Stephen23
Stephen23 am 7 Feb. 2019
Functions for importing data are explained here:
If you uploaded a sample file we could help you more.
Mazhar Ali
Mazhar Ali am 8 Feb. 2019
Thanks the sample file containing nunber of activities ,Processing time of each activity, Maximum amount of stock for each resource, Consumption of resources of each task and Precedence Constraints is attached ..Waiting for your respponse
Walter Roberson
Walter Roberson am 8 Feb. 2019
Is the number of resources always 4 ?
Mazhar Ali
Mazhar Ali am 10 Feb. 2019
yes

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Gefragt:

am 7 Feb. 2019

Kommentiert:

am 10 Feb. 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by