Dear all,
I want to create a cycle for-do and I want to have the values of the results for each considered point.
How can I write this in aimms?
For now I wrote this
for e| (epsilon_e(e))>epsilonl and (epsilon_e(e))
CO2_ec:=epsilon_e(e);
solve Min_Total_Costs;
Total_Costs_e(e):=Total_Costs;
endfor;
with e the index of a set epsilon_e, while Total_Costs_e(e) a variable.
I want to know the value of Total_Costs_e for each e. What is missing in the code?
Thanks
Best
GL
Page 1 / 1
dear @Chris Kuip
thanks, it seems that I obtained some results for each considered point.
Many tanks.
Best
GL
thanks, it seems that I obtained some results for each considered point.
Many tanks.
Best
GL
The set that is the range of index e can be declared as follows (where p_NumberOfPoints controls the set size):
code:
Parameter p_NumberOfPoints {
InitialData: 3;
}
Set s_Events {
SubsetOf: Integers;
Index: e;
Definition: ElementRange(1,p_NumberOfPoints);
}
Dear @Chris Kuip
how can define the number of points for the defined range epsilon?
Thanks
how can define the number of points for the defined range epsilon?
Thanks
Dear @Chris Kuip ,
thanks for your response. I tried and it still is not working. How can I define the set for index e and these parameters?
Thanks.
thanks for your response. I tried and it still is not working. How can I define the set for index e and these parameters?
Thanks.
* Perhaps a typo: at the end of the first line (starting with for) I would expect the word "do".
* Looking at your code, I expect the following identifiers to be declared as parameters:
Also note that if epsilonl is strictly positive (as its name suggests) then the "and (epsilon_e(e))" part of the condition on the for loop is superfluous.
* Looking at your code, I expect the following identifiers to be declared as parameters:
- epsilonl
- epsilon_e
- CO2_ec
- Total_Costs_e
Also note that if epsilonl is strictly positive (as its name suggests) then the "and (epsilon_e(e))" part of the condition on the for loop is superfluous.
Reply
Sign up
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 E-mail address. We'll send you an e-mail with instructions to reset your password.