Changeset 474


Ignore:
Timestamp:
07/08/11 10:54:46 (5 years ago)
Author:
mmckerns
Message:

populate SetConstraints? method to UQ branch

Location:
branches/UQ/math
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • branches/UQ/math/examples2/TEST4d_OUQ_surrogate_diam.py

    r472 r474  
    4646  solver.SetEvaluationMonitor(evalmon) 
    4747  solver.SetGenerationMonitor(stepmon) 
     48  solver.SetConstraints(_constraints) 
    4849 
    4950  tol = convergence_tol 
    5051  solver.Solve(cost,termination=COG(tol,ngen),strategy=Best1Exp, \ 
    51                CrossProbability=crossover,ScalingFactor=percent_change, \ 
    52                constraints=_constraints) 
     52               CrossProbability=crossover,ScalingFactor=percent_change) 
    5353 
    5454  solved = solver.bestSolution 
  • branches/UQ/math/examples2/TEST_OUQ_surrogate_diam.py

    r472 r474  
    4646  solver.SetEvaluationMonitor(evalmon) 
    4747  solver.SetGenerationMonitor(stepmon) 
     48  solver.SetConstraints(_constraints) 
    4849 
    4950  tol = convergence_tol 
    5051  solver.Solve(cost,termination=COG(tol,ngen),strategy=Best1Exp, \ 
    51                CrossProbability=crossover,ScalingFactor=percent_change, \ 
    52                constraints=_constraints) 
     52               CrossProbability=crossover,ScalingFactor=percent_change) 
    5353 
    5454  solved = solver.bestSolution 
  • branches/UQ/math/examples3/thk_safe/INV_seesaw2d_inf_thk_diam.py

    r471 r474  
    4848  solver.SetEvaluationMonitor(evalmon) 
    4949  solver.SetGenerationMonitor(stepmon) 
     50  solver.SetConstraints(_constraints) 
    5051 
    5152  tol = convergence_tol 
    5253 #solver.Solve(cost,termination=CRT(tol,tol),strategy=Best1Exp, \ 
    5354  solver.Solve(cost,termination=COG(tol,ngen),strategy=Best1Exp, \ 
    54                CrossProbability=crossover,ScalingFactor=percent_change, \ 
    55                constraints=_constraints) 
     55               CrossProbability=crossover,ScalingFactor=percent_change) 
    5656 
    5757  solved = solver.bestSolution 
  • branches/UQ/math/examples3/thk_safe/INV_seesaw2d_sup_thk_diam.py

    r471 r474  
    4848  solver.SetEvaluationMonitor(evalmon) 
    4949  solver.SetGenerationMonitor(stepmon) 
     50  solver.SetConstraints(_constraints) 
    5051 
    5152  tol = convergence_tol 
    5253 #solver.Solve(cost,termination=CRT(tol,tol),strategy=Best1Exp, \ 
    5354  solver.Solve(cost,termination=COG(tol,ngen),strategy=Best1Exp, \ 
    54                CrossProbability=crossover,ScalingFactor=percent_change, \ 
    55                constraints=_constraints) 
     55               CrossProbability=crossover,ScalingFactor=percent_change) 
    5656 
    5757  solved = solver.bestSolution 
  • branches/UQ/math/examples3/thk_unsafe/INV_seesaw2d_inf_thk_diam.py

    r471 r474  
    4848  solver.SetEvaluationMonitor(evalmon) 
    4949  solver.SetGenerationMonitor(stepmon) 
     50  solver.SetConstraints(_constraints) 
    5051 
    5152  tol = convergence_tol 
    5253 #solver.Solve(cost,termination=CRT(tol,tol),strategy=Best1Exp, \ 
    5354  solver.Solve(cost,termination=COG(tol,ngen),strategy=Best1Exp, \ 
    54                CrossProbability=crossover,ScalingFactor=percent_change, \ 
    55                constraints=_constraints) 
     55               CrossProbability=crossover,ScalingFactor=percent_change) 
    5656 
    5757  solved = solver.bestSolution 
  • branches/UQ/math/examples3/thk_unsafe/INV_seesaw2d_sup_thk_diam.py

    r471 r474  
    4848  solver.SetEvaluationMonitor(evalmon) 
    4949  solver.SetGenerationMonitor(stepmon) 
     50  solver.SetConstraints(_constraints) 
    5051 
    5152  tol = convergence_tol 
    5253 #solver.Solve(cost,termination=CRT(tol,tol),strategy=Best1Exp, \ 
    5354  solver.Solve(cost,termination=COG(tol,ngen),strategy=Best1Exp, \ 
    54                CrossProbability=crossover,ScalingFactor=percent_change, \ 
    55                constraints=_constraints) 
     55               CrossProbability=crossover,ScalingFactor=percent_change) 
    5656 
    5757  solved = solver.bestSolution 
  • branches/UQ/math/examples3/vel_safe/INV_seesaw2d_inf_vel_diam.py

    r471 r474  
    4848  solver.SetEvaluationMonitor(evalmon) 
    4949  solver.SetGenerationMonitor(stepmon) 
     50  solver.SetConstraints(_constraints) 
    5051 
    5152  tol = convergence_tol 
    5253 #solver.Solve(cost,termination=CRT(tol,tol),strategy=Best1Exp, \ 
    5354  solver.Solve(cost,termination=COG(tol,ngen),strategy=Best1Exp, \ 
    54                CrossProbability=crossover,ScalingFactor=percent_change, \ 
    55                constraints=_constraints) 
     55               CrossProbability=crossover,ScalingFactor=percent_change) 
    5656 
    5757  solved = solver.bestSolution 
  • branches/UQ/math/examples3/vel_safe/INV_seesaw2d_sup_vel_diam.py

    r471 r474  
    4848  solver.SetEvaluationMonitor(evalmon) 
    4949  solver.SetGenerationMonitor(stepmon) 
     50  solver.SetConstraints(_constraints) 
    5051 
    5152  tol = convergence_tol 
    5253 #solver.Solve(cost,termination=CRT(tol,tol),strategy=Best1Exp, \ 
    5354  solver.Solve(cost,termination=COG(tol,ngen),strategy=Best1Exp, \ 
    54                CrossProbability=crossover,ScalingFactor=percent_change, \ 
    55                constraints=_constraints) 
     55               CrossProbability=crossover,ScalingFactor=percent_change) 
    5656 
    5757  solved = solver.bestSolution 
  • branches/UQ/math/examples3/vel_unsafe/INV_seesaw2d_inf_vel_diam.py

    r471 r474  
    4848  solver.SetEvaluationMonitor(evalmon) 
    4949  solver.SetGenerationMonitor(stepmon) 
     50  solver.SetConstraints(_constraints) 
    5051 
    5152  tol = convergence_tol 
    5253 #solver.Solve(cost,termination=CRT(tol,tol),strategy=Best1Exp, \ 
    5354  solver.Solve(cost,termination=COG(tol,ngen),strategy=Best1Exp, \ 
    54                CrossProbability=crossover,ScalingFactor=percent_change, \ 
    55                constraints=_constraints) 
     55               CrossProbability=crossover,ScalingFactor=percent_change) 
    5656 
    5757  solved = solver.bestSolution 
  • branches/UQ/math/examples3/vel_unsafe/INV_seesaw2d_sup_vel_diam.py

    r471 r474  
    4848  solver.SetEvaluationMonitor(evalmon) 
    4949  solver.SetGenerationMonitor(stepmon) 
     50  solver.SetConstraints(_constraints) 
    5051 
    5152  tol = convergence_tol 
    5253 #solver.Solve(cost,termination=CRT(tol,tol),strategy=Best1Exp, \ 
    5354  solver.Solve(cost,termination=COG(tol,ngen),strategy=Best1Exp, \ 
    54                CrossProbability=crossover,ScalingFactor=percent_change, \ 
    55                constraints=_constraints) 
     55               CrossProbability=crossover,ScalingFactor=percent_change) 
    5656 
    5757  solved = solver.bestSolution 
Note: See TracChangeset for help on using the changeset viewer.