Perfect competition
Mark S Walbert's Intermediate Microeconomics site, at Illinois State University, has a variety of Excel workbook projects that can be downloaded, including one on Cost Minimizing (which explores "how a firm decides how to produce - how many units of each input to employ"). Naturally, you will require a copy of Microsoft Excel to make use of the workbook. The workbooks typically offer interactive diagrams and a structured question approach that will take you through the technicalities of the topic.