Commit 6385d26f authored by Jorn Baayen's avatar Jorn Baayen

TestModelMixedInteger: Reformulate such that relaxations make sense.

parent d284bd2c
model TestModelMixedInteger
input Boolean choice (fixed=false);
input Boolean choice(fixed=false);
Boolean other_choice;
Real y;
if choice then
y = 1.0;
other_choice = false;
y = -1.0;
other_choice = true;
end if;
y = choice + (choice - 1);
other_choice = 1 - choice;
end TestModelMixedInteger;
\ No newline at end of file
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