Changeset 13290
- Timestamp:
- 2012-10-10T11:38:52+02:00 (12 years ago)
- Location:
- trunk/OMOptim
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/OMOptim/Core/OMC/MOomc.cpp
r13210 r13290 651 651 // {{Modelica.SIunits.Temp_K,TorcH,"ORC hot temperature (K)", "public", false, false, false, false, "parameter", "none", "unspecified",{}},{Modelica.SIunits.Temp_K,TorcC,"ORC cold temperature (K)", "public", false, false, false, false, "parameter", "none", "unspecified",{}}} 652 652 653 QRegExp rexp(".*"+compName+","+"\" \\(.*\\)\"(\\.*)");653 QRegExp rexp(".*"+compName+","+"\"(.*)\""); 654 654 rexp.setMinimal(true); 655 655 if(commandRes.contains(rexp)&&rexp.capturedTexts().size()>1) -
trunk/OMOptim/Core/OptObjective.cpp
r12583 r13290 51 51 OptObjective::OptObjective(const Variable &var, OptObjective::Direction direction):Variable(var) 52 52 { 53 // problem: fields doesnt have proper correspondence 54 // filledFields is not consistent after Variable(var) 55 for(int i=0;i<this->getNbFields();i++) 56 if(_filledFields.contains(i)) 57 _filledFields.push_back(i); 58 53 59 setFieldValue(OptObjective::DIRECTION,direction); 54 60 _scanFunction = NONE; … … 64 70 _min = obj._min; 65 71 _max = obj._max; 72 _filledFields = obj._filledFields; 66 73 } 67 74 -
trunk/OMOptim/Core/Problems/OptimResult.cpp
r12818 r13290 336 336 337 337 CSVBase::FileToVariableResult(_recomputedVariables,iPoint,pointFolder+QDir::separator()+"resultVar.csv"); 338 //int iRecVar;339 // for(int iCurVar=0;iCurVar<pointVariables->size();iCurVar++)340 // {341 // //set value342 // iRecVar = _recomputedVariables->findItem(pointVariables->at(iCurVar)->getFieldValue(Variable::NAME).toString());343 // if(iRecVar>-1)344 // _recomputedVariables->at(iRecVar)->setFinalValueAtPoint(345 // pointVariables->at(iCurVar)->getFieldValue(Variable::VALUE).toDouble(),iPoint);346 // else347 // {348 // // variable found in file does not exist in _recomputedVariables349 // // add it350 // newVariableResult = new VariableResult(*pointVariables->at(iCurVar));351 // newVariableResult->setFinalValueAtPoint(iPoint,352 // pointVariables->at(iCurVar)->getFieldValue(Variable::VALUE).toDouble());353 // _recomputedVariables->addItem(newVariableResult);354 355 // // display info356 // QString msg;357 // msg.sprintf("Variable %s added in recomputed variables list",358 // newVariableResult->getFieldValue(VariableResult::NAME).toString().utf16());359 // InfoSender::instance()->send(Info(msg,ListInfo::NORMAL2));360 // }361 // }362 338 } 363 339 } … … 698 674 } 699 675 676 int OptimResult::nbPoints() 677 { 678 return _optVariablesResults->nbPoints(); 679 } 680 -
trunk/OMOptim/Core/Problems/OptimResult.h
r12619 r13290 94 94 95 95 96 int nbPoints(); 96 97 void setCurPoint(int); 97 98 int curPoint(); -
trunk/OMOptim/GUI/Tabs/TabResOptimization.cpp
r12619 r13290 142 142 readGUIState(); 143 143 144 // // select first point 145 // if(result->nbPoints()>0) 146 // _widgetMooPointsList->_listPoints->setSelectedIndexes(QList<int>()<<0); 147 144 148 } 145 149
Note: See TracChangeset
for help on using the changeset viewer.