Topics started by Marc_dm
Error: To run AOA the name of the AOA callback procedure should be assigned to suffix 'CallbackAOA' of 'Loesung'
While calculating a Sum-Function I encountered a problem (see error message below):While using the power of X=1 and X=2 the model works perfectly however with any other number (also negative numbers) it displays the error below in red.Function: Sum[p, 2 * (L1(p)+0.001)^(X) ] Using +0.001 to avoid any division by 0 (in case of X being negative).L1(p) being a variable which is defined by a constraint L_1(p):Sum[i,L(p,i)] + L1(p-1)= L1(p)And L(p,i) in the constraint being a binary parameter. To run AOA the name of the AOA callback procedure should be assigned to suffix 'CallbackAOA' of 'Loesung'. For example: Loesung.CallbackAOA := 'OuterApprox::BasicAlgorithm'; where 'OuterApprox' is the prefix of the Outer Approximation module.Warning: Model status 13: Error no solution, Solver status 10: Error: Solver failure (see message window).Thank your for any help.
I’m looking for help to extracting the first and last value of a given list. I have a binary parameter L(p,i) which will be given varios list of data.For example:List p=1: i=1 → 0i=2 → 1i=3 → 1i=4 → 0List p=2:i=1 → 1i=2 → 0i=3 → 1i=4 → 1I’m looking for a command which will extract the first i which is set to 1 on a given list. In this Example for the list p=1 it would be i=2 and for the list p=2 it would be i=1.I’m also looking for a command which will extract the last i which is set to 1 on a given list. In this example for the list p=1 it would be i=3 and for the list p=2 it would be i=4.I tried the “First” and “Last” command which always lead to using i=1 (for the command “First”) even though in the example p=1 the value of i=1 is 0 and not 1.Any help would be appreciated.
Already have an account? Login
Please use your business or academic e-mail address to register
Login to the community
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.