Search found 3 matches

by bduarte
5 years ago
Forum: Syntax
Topic: Macros containing equations
Replies: 6
Views: 9135

Re: Macros containing equations

Thank you again. This problem is the lower-level program of a bilevel one where at the upper level we optimize the x variables. First I am trying to automate the lower level one, and here I have at the beginning np parameters which are expanded to a set of 2*np combinations of parameters. That is, w...
by bduarte
5 years ago
Forum: Syntax
Topic: Macros containing equations
Replies: 6
Views: 9135

Re: Macros containing equations

Hi Michael, Thank you. I spent some time making the test code readable. Here, I upload it, and it is running for the simplest case where all the equations are discriminated. My goal is to automate the equations eq_low... and eq_up... in 2 different macros where the variables entering the equations a...
by bduarte
5 years ago
Forum: Syntax
Topic: Macros containing equations
Replies: 6
Views: 9135

Macros containing equations

I have a problem where the distance from upper and lower values of a set of parameters is to be maximized. Let's say the number of parameters is 4, and we know its lower and upper bounds. Then a set of instances is formed where each instance contains a single parameter (to be optimized, i.e. a singl...