private void algorithmButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_algorithmButtonActionPerformed
        try{
            double cool = Double.parseDouble(coolRateField.getText());
            s = dc.MetropolisAlgorithm(s, cool, Integer.parseInt(maxStudentsField.getText()));
            fitness.setText("" + dc.getRoomFitness(s.schedule[floorList.getSelectedIndex()][roomList.getSelectedIndex()]));
            
            cycleCount.setText("" + s.getCycles());
            dc.changeText(s, sched, floorList.getSelectedIndex(), roomList.getSelectedIndex());
        } catch(Exception e){
            JOptionPane.showMessageDialog(this, "Debe ingresar un valor de enfriamiento!",
                        "Error de entrada", JOptionPane.ERROR_MESSAGE);
            coolRateField.setText("");
        }
    }//GEN-LAST:event_algorithmButtonActionPerformed