Skip to content

Commit

Permalink
[issue1134] Make VEGraph parameter const.
Browse files Browse the repository at this point in the history
  • Loading branch information
remochristen committed Feb 2, 2024
1 parent f56b8e6 commit d3d3f67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ bool DeleteRelaxationConstraintsRR::is_in_precondition(
}

void DeleteRelaxationConstraintsRR::create_auxiliary_variables(
const TaskProxy &task_proxy, LPVariables &variables, VEGraph &ve_graph) {
const TaskProxy &task_proxy, LPVariables &variables, const VEGraph &ve_graph) {
OperatorsProxy ops = task_proxy.get_operators();
VariablesProxy vars = task_proxy.get_variables();
int num_vars = vars.size();
Expand Down Expand Up @@ -241,7 +241,7 @@ void DeleteRelaxationConstraintsRR::create_auxiliary_variables(
}

void DeleteRelaxationConstraintsRR::create_constraints(
const TaskProxy &task_proxy, lp::LinearProgram &lp, VEGraph &ve_graph) {
const TaskProxy &task_proxy, lp::LinearProgram &lp, const VEGraph &ve_graph) {
LPVariables &variables = lp.get_variables();
LPConstraints &constraints = lp.get_constraints();
double infinity = lp.get_infinity();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ class DeleteRelaxationConstraintsRR : public ConstraintGenerator {
bool is_in_precondition(FactPair f, const OperatorProxy &op);

void create_auxiliary_variables(
const TaskProxy &task_proxy, LPVariables &variables, VEGraph &ve_graph);
void create_constraints(const TaskProxy &task_proxy, lp::LinearProgram &lp, VEGraph &ve_graph);
const TaskProxy &task_proxy, LPVariables &variables, const VEGraph &ve_graph);
void create_constraints(const TaskProxy &task_proxy, lp::LinearProgram &lp, const VEGraph &ve_graph);
public:
explicit DeleteRelaxationConstraintsRR(const plugins::Options &opts);

Expand Down

0 comments on commit d3d3f67

Please sign in to comment.