Skip to main content
added 37 characters in body
Source Link
TheSimpliFire
  • 5.5k
  • 5
  • 23
  • 56

I'm trying to solve an rcpsp model.

I can't find documentation for the AddCumulativeAddCumulative function of OR-Tools. How should this function be used? I

I want to dowrite this constraint in C++: $$\forall k \in R, \text{cumulative}(s, p_{j}, [r_{jk}|j\in J| R_{k}])$$$$\forall k \in R,\quad\text{cumulative}(s, p_{j}, [r_{jk}\mid j\in J\mid R_{k}])$$ ($s$ is my decision variable, a vector that saves the period of when the job begins, $p_{j}$ is the duration of activity $j$, $r_{jk}$ is the amount of resource used by activity $j$ and $R_{k}$ is the capacity of the resource $k$ each day), but the OR-Tools module apparently takes only one argument, although I've seen some examples where it takes 3. Actually

Actually, if I give the function the parameter rhsRHS, wichwhich is the resource capacity (what it is asking for), I get this error:

no matching function for call to ‘operations_research::sat::CpModelBuilder::AddCumulative(int*&)’
     cp_model.AddCumulative(rhs);
                               ^

In addition, the command prompt says that rhsRHS must be IntVarIntVar but is intint. So, my question is, what is the capacity that the function must take? andAnd what happens with the other values like IntervalVarIntervalVar and resource consumption by job.?

I'm trying to solve an rcpsp model.

I can't find documentation for the AddCumulative function of OR-Tools. How should this function be used? I want to do this constraint: $$\forall k \in R, \text{cumulative}(s, p_{j}, [r_{jk}|j\in J| R_{k}])$$ ($s$ is my decision variable, a vector that saves the period of when the job begins, $p_{j}$ is the duration of activity $j$, $r_{jk}$ is the amount of resource used by activity $j$ and $R_{k}$ is the capacity of the resource $k$ each day), but the OR-Tools module apparently takes only one argument, although I've seen some examples where it takes 3. Actually, if I give the function the parameter rhs, wich is the resource capacity (what is asking for), I get this error:

no matching function for call to ‘operations_research::sat::CpModelBuilder::AddCumulative(int*&)’
     cp_model.AddCumulative(rhs);
                               ^

In addition, the command prompt says that rhs must be IntVar but is int. So, my question is, what is the capacity that the function must take? and what happens with the other values like IntervalVar and resource consumption by job.

I'm trying to solve an rcpsp model.

I can't find documentation for the AddCumulative function of OR-Tools. How should this function be used?

I want to write this constraint in C++: $$\forall k \in R,\quad\text{cumulative}(s, p_{j}, [r_{jk}\mid j\in J\mid R_{k}])$$ ($s$ is my decision variable, a vector that saves the period of when the job begins, $p_{j}$ is the duration of activity $j$, $r_{jk}$ is the amount of resource used by activity $j$ and $R_{k}$ is the capacity of the resource $k$ each day), but the OR-Tools module apparently takes only one argument, although I've seen some examples where it takes 3.

Actually, if I give the function the parameter RHS, which is the resource capacity (what it is asking for), I get this error:

no matching function for call to ‘operations_research::sat::CpModelBuilder::AddCumulative(int*&)’
     cp_model.AddCumulative(rhs);
                               ^

In addition, the command prompt says that RHS must be IntVar but is int. So, my question is, what is the capacity that the function must take? And what happens with the other values like IntervalVar and resource consumption by job?

added 159 characters in body
Source Link

I'm trying to solve an rcpsp model.

I can't find documentation for the AddCumulative function of OR-Tools. How should this function be used? I want to do this constraint: $$\forall k \in R, \text{cumulative}(s, p, [r_{jk}|j\in J, R_{k}])$$$$\forall k \in R, \text{cumulative}(s, p_{j}, [r_{jk}|j\in J| R_{k}])$$ ($s$ is my decision variable, a vector that saves the period of when the job begins, $p_{j}$ is the duration of activity $j$, $r_{jk}$ is the amount of resource used by activity $j$ and $R_{k}$ is the capacity of the resource $k$ each day), but the OR-Tools module apparently takes only one argument, although I've seen some examples where it takes 3. Actually, if I give the function the parameter rhs, wich is the resource capacity (what is asking for), I get this error:

no matching function for call to ‘operations_research::sat::CpModelBuilder::AddCumulative(int*&)’
     cp_model.AddCumulative(rhs);
                               ^

In addition, the command prompt says that rhs must be IntVar but is int. So, my question is, what is the capacity that the function must take? and what happens with the other values like IntervalVar and resource consumption by job.

I'm trying to solve an rcpsp model.

I can't find documentation for the AddCumulative function of OR-Tools. How should this function be used? I want to do this constraint: $$\forall k \in R, \text{cumulative}(s, p, [r_{jk}|j\in J, R_{k}])$$ ($s$ is my decision variable, a vector that saves the period of when the job begins), but the OR-Tools module apparently takes only one argument, although I've seen some examples where it takes 3. Actually, if I give the function the parameter rhs, wich is the resource capacity (what is asking for), I get this error:

no matching function for call to ‘operations_research::sat::CpModelBuilder::AddCumulative(int*&)’
     cp_model.AddCumulative(rhs);
                               ^

In addition, the command prompt says that rhs must be IntVar but is int. So, my question is, what is the capacity that the function must take? and what happens with the other values like IntervalVar and resource consumption by job.

I'm trying to solve an rcpsp model.

I can't find documentation for the AddCumulative function of OR-Tools. How should this function be used? I want to do this constraint: $$\forall k \in R, \text{cumulative}(s, p_{j}, [r_{jk}|j\in J| R_{k}])$$ ($s$ is my decision variable, a vector that saves the period of when the job begins, $p_{j}$ is the duration of activity $j$, $r_{jk}$ is the amount of resource used by activity $j$ and $R_{k}$ is the capacity of the resource $k$ each day), but the OR-Tools module apparently takes only one argument, although I've seen some examples where it takes 3. Actually, if I give the function the parameter rhs, wich is the resource capacity (what is asking for), I get this error:

no matching function for call to ‘operations_research::sat::CpModelBuilder::AddCumulative(int*&)’
     cp_model.AddCumulative(rhs);
                               ^

In addition, the command prompt says that rhs must be IntVar but is int. So, my question is, what is the capacity that the function must take? and what happens with the other values like IntervalVar and resource consumption by job.

Fixed some grammar and changed LaTeX to display on separate line for better visibility.
Source Link

I'm trying to solve an rcpsp model.

I can't find documentation for the AddCumulative function of orOR-toolsTools. How should be used this function be used? iI want to do this constraint: $\forall$ k $\in R$, $cumulative(s, p, [r_{jk}|j\in J, R_{k}])$$$\forall k \in R, \text{cumulative}(s, p, [r_{jk}|j\in J, R_{k}])$$ (s$s$ is my decision variable, a vector that saves the period of when the job begins), but the orOR-toolsTools module apparently takes only one argument, but i'vealthough I've seen some examples where it takes 3. Actually, if iI give the function the parameter rhs, wich is the resource capacity (what is asking for), iI get this error:

no matching function for call to ‘operations_research::sat::CpModelBuilder::AddCumulative(int*&)’
     cp_model.AddCumulative(rhs);
                               ^

In addition, the commnadcommand prompt says that rhs must be IntVar but is int. So, my question is, what is the capacity that the function must take? and what happens with the other values like IntervalVar and resource consumption by job.

I'm trying to solve an rcpsp model.

I can't find documentation for the AddCumulative function of or-tools. How should be used this function? i want to do this constraint: $\forall$ k $\in R$, $cumulative(s, p, [r_{jk}|j\in J, R_{k}])$ (s is my decision variable, a vector that saves the period of when the job begins), but the or-tools apparently takes only one argument, but i've seen some examples where it takes 3. Actually if i give the function the parameter rhs, wich is the resource capacity (what is asking for), i get this error:

no matching function for call to ‘operations_research::sat::CpModelBuilder::AddCumulative(int*&)’
     cp_model.AddCumulative(rhs);
                               ^

In addition, the commnad prompt says that rhs must be IntVar but is int. So, my question is, what is the capacity that the function must take? and what happens with the other values like IntervalVar and resource consumption by job.

I'm trying to solve an rcpsp model.

I can't find documentation for the AddCumulative function of OR-Tools. How should this function be used? I want to do this constraint: $$\forall k \in R, \text{cumulative}(s, p, [r_{jk}|j\in J, R_{k}])$$ ($s$ is my decision variable, a vector that saves the period of when the job begins), but the OR-Tools module apparently takes only one argument, although I've seen some examples where it takes 3. Actually, if I give the function the parameter rhs, wich is the resource capacity (what is asking for), I get this error:

no matching function for call to ‘operations_research::sat::CpModelBuilder::AddCumulative(int*&)’
     cp_model.AddCumulative(rhs);
                               ^

In addition, the command prompt says that rhs must be IntVar but is int. So, my question is, what is the capacity that the function must take? and what happens with the other values like IntervalVar and resource consumption by job.

Source Link
Loading