scenario changes
This commit is contained in:
parent
c9b42a02f0
commit
804a634062
|
@ -156,7 +156,7 @@ void updateMesh(long n, const double *x) {
|
|||
}
|
||||
|
||||
pReducedPatternSimulationMesh->updateEigenEdgeAndVertices();
|
||||
pReducedPatternSimulationMesh->updateInitialPositions();
|
||||
pReducedPatternSimulationMesh->reset();
|
||||
// pReducedPatternSimulationMesh->registerForDrawing("Optimized
|
||||
// hexagon"); polyscope::show();
|
||||
}
|
||||
|
@ -507,7 +507,7 @@ Eigen::VectorXd ReducedModelOptimizer::runOptimization(
|
|||
"conditions is not recommended.");
|
||||
// Set initial guess of solution
|
||||
|
||||
std::vector<double> x(n, 2);
|
||||
std::vector<double> x(n, 100);
|
||||
x[4] = g_innerHexagonInitialPos;
|
||||
if (!initialGuess.empty()) {
|
||||
x = initialGuess;
|
||||
|
@ -770,12 +770,6 @@ void ReducedModelOptimizer::optimize(const int &simulationScenario) {
|
|||
"reducedModel_" + SimulationScenarioStrings[simulationScenarioIndex];
|
||||
reducedModelResults.registerForDrawing(reducedPatternSimulationJob);
|
||||
// registerWorldAxes();
|
||||
std::cout << "A full:"
|
||||
<< m_pFullModelSimulationMesh->elements[0].properties.A
|
||||
<< std::endl;
|
||||
std::cout << "A reduced:"
|
||||
<< m_pReducedPatternSimulationMesh->elements[0].properties.A
|
||||
<< std::endl;
|
||||
polyscope::show();
|
||||
fullModelResults.unregister();
|
||||
reducedModelResults.unregister();
|
||||
|
|
Loading…
Reference in New Issue