In my Last picture i calculated the slope wrong in this picture slopes are right.
I am totally new in AMPL. I had been trying for two days and managed to went a little further but still stuck in this situation.
minimize TC:
sum {i in Prod,j in Hours} <<-3195.2,-1697.45,0,3600,8000,22000;0,-0.8372131,-0.7414846,-0.7390506,-0.6136911,-0.400202,0>>make[i,j];
I used this statement to represent my piece wise curve but as you can see that there is no zero crossing in my curve. How should i add this information in AMPL that my curve has no zero crossing and f(0)=38307.2929.
I am not receiving any error messages but my objective function is generating false values because ample is giving f(0)=0 where as my function has f(0)=38307.2929.
<<-3195.2,-1697.45,0,3600,8000,22000;0,-0.8372131,-0.7414846,-0.7390506,-0.6136911,-0.400202,0>>0 should generate =38307.2929
but right now it is generating
<<-3195.2,-1697.45,0,3600,8000,22000;0,-0.8372131,-0.7414846,-0.7390506,-0.6136911,-0.400202,0>>0 ==> 0
Thanking you in anticipation.