Commit 8a885f34 authored by MichelJuillard's avatar MichelJuillard

ms-sbvar: fixing bug in linear restrictions

parent 6eb16f06
......@@ -875,6 +875,7 @@ ParsingDriver::add_positive_restriction_element(string *variable, string *lag)
SvarIdentificationStatement::svar_identification_restriction new_restriction;
new_restriction.equation = svar_equation_nbr;
new_restriction.restriction_nbr = svar_restriction_nbr[svar_equation_nbr];
new_restriction.lag = atoi(lag->c_str());
new_restriction.variable = symb_id;
new_restriction.value = value;
......@@ -894,6 +895,7 @@ ParsingDriver::add_negative_restriction_element(expr_t value, string *variable,
SvarIdentificationStatement::svar_identification_restriction new_restriction;
new_restriction.equation = svar_equation_nbr;
new_restriction.restriction_nbr = svar_restriction_nbr[svar_equation_nbr];
new_restriction.lag = atoi(lag->c_str());
new_restriction.variable = symb_id;
new_restriction.value = value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment