ms-sbvar: fixing bug in linear restrictions

time-shift
Michel Juillard 2011-11-05 21:36:36 +01:00
parent 6eb16f06f5
commit 8a885f3468
1 changed files with 2 additions and 0 deletions

View File

@ -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;