Find all optimal solutions to the following LP in SAS.
Max Z = 3X[1] + 3X[2]
s.t. X[1] + X[2] <= 1
All X[i] => 0
Please help me with just the codes. I can interpret once I see them. Appreciate the help, in advance!
@nep0827, does this represent your actual problem? Any two positive number numbers that sum to 1 will optimize this problem. However, as answered in your previous thread, you can find one of those solutions like this
proc optmodel;
var x{i in 1..2} >= 0;
max z = 3*x[1] + 3*x[2];
con c1: x[1] + x[2] <= 1;
solve;
print x;
run;quit;
@nep0827, does this represent your actual problem? Any two positive number numbers that sum to 1 will optimize this problem. However, as answered in your previous thread, you can find one of those solutions like this
proc optmodel;
var x{i in 1..2} >= 0;
max z = 3*x[1] + 3*x[2];
con c1: x[1] + x[2] <= 1;
solve;
print x;
run;quit;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.