Operations Research topics: SAS/OR,
SAS Optimization, and SAS Simulation Studio

Proc optmodel - Dynamic variable and objective function

Accepted Solution Solved
Reply
Contributor
Posts: 47
Accepted Solution

Proc optmodel - Dynamic variable and objective function

Hi all:

    I define 4 numeric variables: a, b, c, d and want to calculate the minimal value of objective function, and meet a problem.

When interating, the a variable named flag is based on variable a, b : flag=max(a,b), and the flag variable is also involved in the objective function, for example:

min f= X + a*Y * flag - ........;

that means the flag variable value and the objective function will change during each interation. So how to define them in proc optmodel.

Thanks!


Accepted Solutions
Solution
‎05-01-2013 09:30 AM
Contributor
Posts: 47

Re: Proc optmodel - Dynamic variable and objective function

I answer it by myself.

Use PROC FCMP to create some functions to solve it, the mechanism of SAS is a little different with that of MATLAB.

View solution in original post


All Replies
Solution
‎05-01-2013 09:30 AM
Contributor
Posts: 47

Re: Proc optmodel - Dynamic variable and objective function

I answer it by myself.

Use PROC FCMP to create some functions to solve it, the mechanism of SAS is a little different with that of MATLAB.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 298 views
  • 0 likes
  • 1 in conversation