ThinWalledHW02Code
From ASCEND
Write a model to solve
x + y + z = 6*d x - y + 2*z = 5 5*x + 2*y - 3*z = 0 for d=1.
Our code for this problem is as follows.
REQUIRE "system.a4l"; MODEL HWProb2; (* variables *) x,y,z,d IS_A solver_var; (* specificiation *) d = 1.0; (* equations *) x + y + z = 6.0*d; x - y + 2.0*z = 5.0; 5.0*x + 2.0*y - 3.0*z = 0.0; END HWProb2;
We have changed the real constants (e.g., the 6 in the first equation) to be in a "real" syntax (6.0). You do not need to do that conversion when writing these equations as ASCEND will convert them from integer to real during the solving process. We are saving the need for this conversion while solving.

