Topics started by graleo
Dear,I have a binary variable in my model X(i,j,k,s) and I want that it assumes a value that I calculated in the deterministic model. For example I want that X(i,j,k,s)=X('Yorkshire and the Humber','MEA',k,s);How can I write this in aimms?I tried to write a constraint but after the run of the programme I don't have results for this variable.Thanks for your help.
Dear, I want to do a cycle for. I have two boundary values and I want to consider values between these boundaries. Then for these considered values I want to solve the Min_Total_Costs and have the values of Total Costs for the considered values. How can I write this cycle for? How can define set, ect? For now I wrote this code 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 ep and epsilon_e(e) an integer variable. But it seems that it is not working. Can you help me? Thanks.
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
Dear @deannezhang , I solved it. I have this warming: Warning: Encountered a lag/lead operator on a subset of Integers, which may not be your intend. Surround the left operand with Val() to turn it into a integer minus/plus. See option 'warning_lag_lead_on_subset_of_integers'. How can I solve it? Best GL
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.